How to turn off Logging


Pronestor Room & Catering is logging all errors. These are stored in the / App_Data /error.txt


Sometimes it may be desirable not to log.  The reason can be due to space limitations


There are a number of ways. The easiest is to turn nLog of. This is done in the Web.config by commenting out or remove the following line:


   <nlog configSource="Configuration\NLog.config"/>


You can also commenting out the following in the Nlog.config



      <logger name="*" minlevel="Trace" writeTo="file,debugTarget">


          <when condition="equals('${logger}','ExchangeTraceListener')" action="Ignore" />



      <logger name="ExchangeTraceListener" minlevel="Trace" writeTo="ews"/>



Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk