About NXPowerLite for Microsoft Exchange logging
NXPowerLite for Microsoft Exchange log files can be found in:
%PROGRAMDATA%\Neuxpower\NXPowerLite for Microsoft Exchange v1\Logs (for the Optimizer) or in a Logs subdirectory of the application folder (for the scanner).
By default, NXPowerLite for Microsoft Exchange will output 10 log files each of 1Mb in size, before starting to delete the log files - in order from the oldest first -as new log files are created.
How to adjust logging settings
These settings can be adjusted by the user for both applications, by editing the appropriate application configuration files in a text editor. For the scanner application, this is the NXPowerLite Exchange Scanner.exe.config file in the scanner distribution folder. For the optimizer, you need to change the configuration file for the service - this is NXExchangeOptimizerService.exe.config which is found in the Resources subfolder of the installation directory.
Modifying logging behaviour
NXPowerLite for Microsoft Exchange uses NLog to perform logging, and the configuration file reflects the NLog configuration format. Not all NLog configuration changes will make a difference, but here are some that we have found useful. Note that this section applies equally to Scanner and Optimizer.
Logging configuration is picked up at the application startup, so you will need to restart the scanner or optimizer run once you have edited and saved the file.
Changing the detail of the output
By default, NXPowerLite for Microsoft Exchange outputs logging at the Info level. You can increase this by changing the following:
<logger name="*" minlevel="Info" writeTo="file" />
<logger name="*" minlevel="Debug" writeTo="file" />
Alternatively, you can reduce the amount of output by changing this to Warn or even Error. This would exclude all the informational logging. Note that once the logging has been output, you cannot then change the level and get more or less information for processing that has already occurred.
Significant events in the Optimizer service are also output to the Windows event log - go to eventvwr.exe, click on Windows Logs then Application, and filter for NXPowerLite for Microsoft Exchange.
Changing the amount of information that is retained
To change the number of files that are retained when the logging 'rolls' onto the next file, modify the following line:
<target name="file" type="File"
To keep all the log files, set this to 0. Note that this may use quite a large amount of disk space, especially if you have changed the logging level as detailed earlier.