Do some ILogger cleaning

This commit is contained in:
Mole
2020-09-28 08:26:21 +02:00
parent 7369ffc5fd
commit b5aedde616
46 changed files with 83 additions and 78 deletions

View File

@@ -1,4 +1,5 @@
using System.IO;
using Microsoft.Extensions.Logging;
using Serilog;
using Umbraco.Core.Composing;
using Umbraco.Core.Hosting;
@@ -16,7 +17,7 @@ namespace Umbraco.Core.Logging.Viewer
composition.RegisterUnique<ILogViewer>(factory =>
{
return new SerilogJsonLogViewer(factory.GetInstance<Microsoft.Extensions.Logging.ILogger<SerilogJsonLogViewer>>(),
return new SerilogJsonLogViewer(factory.GetInstance<ILogger<SerilogJsonLogViewer>>(),
factory.GetInstance<ILogViewerConfig>(),
factory.GetInstance<ILoggingConfiguration>(),
Log.Logger);