GitHunt
AI

aimenux/SerilogLoggingLevelSwitchDemo

Using LoggingLevelSwitch in order to dynamically change the serilog level

.NET

SerilogLoggingLevelSwitchDemo

Using LoggingLevelSwitch in order to dynamically change the serilog level

In this demo, i m using a nice serilog feature LoggingLevelSwitch in order to change the serilog level in the fly.

✍️ This feature may be useful when we want to have more detailed logs in some places of our code based on some runtime behaviour (condition, exception, etc).

SerilogLoggingLevelSwitchDemo

Tools : net 10.0, serilog

Languages

C#100.0%

Contributors

Created January 10, 2022
Updated December 27, 2025