Skip to content

Commit c3c3de4

Browse files
committed
default to nLog
1 parent cc33a71 commit c3c3de4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ServiceControl.Infrastructure/LoggingSettings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public LoggingSettings(SettingsRootNamespace rootNamespace, LogLevel defaultLeve
2424
{
2525
activeLoggers |= Loggers.Seq;
2626
}
27-
LoggerUtil.ActiveLoggers = activeLoggers;
27+
//this defaults to NLog because historically that was the default, and we don't want to break existing installs that don't have the config key to define loggingProviders
28+
LoggerUtil.ActiveLoggers = activeLoggers == Loggers.None ? Loggers.NLog : activeLoggers;
2829
}
2930

3031
public LogLevel LogLevel { get; }

0 commit comments

Comments
 (0)