Follow

How to turn off Logging

When

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

Why

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

How

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

  <!--

    <rules>

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

        <filters>

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

        </filters>

      </logger>

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

    </rules>

  -->

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

Comments

Powered by Zendesk