I have a web app, and I'm trying to allow users to set the logging level via a query parameter. Got this working pretty easily.
The issue is that it doesn't just change the logging level for that request, it's changed for all requests that come in during the life cycle of that request - since I'm setting it back to the default level when the request is resolved. I have tried adding the following in my appender, but it's not working as I hoped. <evaluator type="log4net.spi.LevelEvaluator"> <threshold> <layout type="log4net.Layout.RawPropertyLayout"> <key value="LogLevel" /> </threshold> </evaluator> And set a ThreadContext property called LogLevel to the appropriate level, but that doesn't seem to work either. Any thoughts? Have I missed something obvious? Thanks!