Show/Hide Toolbars

If an NLog configuration file is found the configuration file is read automatically at startup of the Application Server. It may be desirable to change the log levels or other logging configuration during run-time of the Application Server (i.e. without having to restart the Application Server).

By adding the autoReload="true" parameter to the configuration file as shown in listing 1 you can advice the Application Server to monitor changes on the configuration file and reload the configuration as soon as a change is detected.

<nlog autoReload="true">
  ...
</nlog>

Listing: The autoReload parameter in the nlog.config file

© 2021 AFRY Austria GmbH, www.redbex.com