Hi
I am looking into Serilog to replace our current logging in our webshop application. However there seems no way to enable dynamic log levels on a per context basis. Am I missing something here?`
Right now we are using log4net and we use the static log-per-type approach which servers us well. At the moment we have a couple hundred log instances. On our productions servers the default log level is warn and if we need to, we can dynamically change the log level in order to gather the information we need. It does not happen very often, but once in a while we need to change log levels to debug for certain logs and let it run a couple of days to catch esoteric bugs, often related to 3rd party systems.
Changing the log level to debug for the whole application is prohibitively expensive for us in terms of space (can reach megabytes per second) and performance (as additional backend and database calls are made to gather information).
As far as I can see Serilog does not have the ability to control the log level in per Context manner. Is there a way around this and if not is this going to change in future releases?
Best regards,
Michael