-
Notifications
You must be signed in to change notification settings - Fork 0
Configure MinimumLevel
Khaos edited this page Apr 28, 2021
·
5 revisions
<Serilog>
<MinimumLevel>Debug</MinimumLevel>
</Serilog>
or
<Serilog>
<MinimumLevel Default="Debug" />
</Serilog>
<Serilog>
<MinimumLevel Default="Debug">
<Override Source="Microsoft">Warning</Override>
<Override Source="System">Warning</Override>
</MinimumLevel>
</Serilog>
<Serilog>
<LevelSwitches>
<Switch Name="MySwitch">Information</Switch>
</LevelSwitches>
<MinimumLevel ControlledBy="MySwitch" />
</Serilog>
or
<Serilog>
<LevelSwitches>
<Switch Name="MySwitch" Level="Warning" />
</LevelSwitches>
<MinimumLevel Default="Debug">
<Override Source="Microsoft" ControlledBy="MySwitch" />
</MinimumLevel>
</Serilog>