Search code examples
nlog

Turn off Logging during Release from Nlog.config


Now i am doing like this

LogManager.DisableLogging();

But this need to deploy my code again, how can I disable loggin from nlog configuration file.


Solution

  •  <nlog globalThreshold="Off" />