KB Article administrator on-premise only
Overview
NLog is the recommended method for collecting FactoryLogix diagnostic logs. NLog captures errors, warnings, and activity timing data useful for performance investigation, and has a lower performance impact than legacy logging methods.
Note
Enabling NLog disables legacy logging.
Prerequisites
-
Obtain the NLog configuration file from the Performance Investigation resource folder.
-
Place the NLog configuration file in the Applications folder or the Server folder, as appropriate.
Configure NLog
To enable or disable logging for specific services and applications, edit the NLog configuration file and set the variable for each target service to On or Off.
Key behaviors
-
Log files and archived logs are saved to C:\AegisLogs.
-
To turn off all logging, edit NLog.config and set all variables to Off.
-
While logging is active, log files are held open by the service that writes to them. If you need to delete log files, delete them first, then restart the affected services.
-
To capture a snapshot of current log content without restarting services, copy the open log files rather than deleting them.