Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off Logging during Release from Nlog.config

Tags:

nlog

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.

like image 343
sunil singh Avatar asked Jun 18 '15 10:06

sunil singh


People also ask

Is NLog asynchronous?

NLog 1.0 supports asynchronous logging, but there is no good support for asynchronous exception handling. This is because wrappers targets are not capable of receiving exceptions which are raised on other threads.

Which of the following logging levels does NLog support?

NLog supports the following levels: Trace - Very detailed log messages, potentially of a high frequency and volume. Debug -Less detailed and/or less frequent debugging messages. Info - Informational messages.

What is NLog config?

NLog makes it easy to write to several targets. (database, file, console) and change the logging configuration on-the-fly. NLog has support for structured and traditional logging. The focus for NLog: high performance, easy-to-use, easy to extend and flexible to configure.


1 Answers

 <nlog globalThreshold="Off" />
like image 128
sunil singh Avatar answered Oct 09 '22 09:10

sunil singh