0

Can anyone please explain to me what is the difference between Serilog MinimumLevel.ControlledBy and MinimumLevel.Override in web api core?

Roberto Caboni
  • 7,252
  • 10
  • 25
  • 39

1 Answers1

1

ControlledBy lets you nominate a Switch variable which will control the logging - this switch can be adjusted (e..g by periodically looking at a global setting)

Override lets you provide a value once, that gets frozen into the overall configuration.

The latter provides better performance (though not by a factor that normally matters)

Ruben Bartelink
  • 59,778
  • 26
  • 187
  • 249