File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/ServiceControl.Infrastructure Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ namespace ServiceControl.Infrastructure
22{
33 using System ;
44 using System . IO ;
5+ using Microsoft . Extensions . Logging ;
56 using NLog ;
67 using NLog . Config ;
7- using NLog . Extensions . Logging ;
88 using NLog . Layouts ;
99 using NLog . Targets ;
1010 using NServiceBus . Extensions . Logging ;
1111 using ServiceControl . Configuration ;
12-
1312 using LogManager = NServiceBus . Logging . LogManager ;
13+ using LogLevel = NLog . LogLevel ;
1414
1515 // TODO: Migrate from NLog to .NET logging
1616 public static class LoggingConfigurator
@@ -76,7 +76,7 @@ public static void ConfigureLogging(LoggingSettings loggingSettings)
7676
7777 NLog . LogManager . Configuration = nlogConfig ;
7878
79- LogManager . UseFactory ( new ExtensionsLoggerFactory ( new NLogLoggerFactory ( ) ) ) ;
79+ LogManager . UseFactory ( new ExtensionsLoggerFactory ( LoggerFactory . Create ( configure => configure . BuildLogger ( loggingSettings . LogLevel ) ) ) ) ;
8080
8181 var logger = LogManager . GetLogger ( "LoggingConfiguration" ) ;
8282 var logEventInfo = new LogEventInfo { TimeStamp = DateTime . UtcNow } ;
You can’t perform that action at this time.
0 commit comments