Skip to content

Commit b66d978

Browse files
committed
SubscribeToLoggingLevelChanges
1 parent d410d53 commit b66d978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog.Settings.Configuration/Settings/Configuration/ConfigurationReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void SubscribeToLoggingLevelChanges(IConfigurationSection levelSection, LoggingL
221221
levelSection.GetReloadToken,
222222
() =>
223223
{
224-
if (Enum.TryParse(levelSection.Value, out LogEventLevel minimumLevel))
224+
if (Enum.TryParse(levelSection.Value, ignoreCase: true, out LogEventLevel minimumLevel))
225225
levelSwitch.MinimumLevel = minimumLevel;
226226
else
227227
SelfLog.WriteLine($"The value {levelSection.Value} is not a valid Serilog level.");

0 commit comments

Comments
 (0)