Adding extended logging to Datto RMM
To enable extended logging, perform the following steps. Remember to remove the extended logging from the devices after gathering the trace logs.
IMPORTANT When extended logging is activated for log components, masked variables will be visible in clear text in the log file.
To enable extended logging for %ProgramFiles(x86)% → CentraStage → log.txt
- On your device, navigate to the nlog.config file:
- Make a copy of the nlog.config file before making any changes to it.
- Right-click on nlog.config and edit the file:
- Save and exit the file.
- Restart the Datto RMM Agent.
Operating system | Path |
---|---|
Windows 32 bit | %ProgramFiles% → CentraStage → nlog.config |
Windows 64 bit | %ProgramFiles(x86)% → CentraStage → nlog.config |
NOTE You may need to change the write permissions for the nlog.config file to edit the file and save the changes.
FROM:
logger name="*" minlevel="Info" writeTo="file" />
TO:
logger name="*" minlevel="Trace" writeTo="file" />
Now when you view the Log.txt file, the extra lines containing DEBUG information will appear.
To enable extended logging for %ProgramData% → CentraStage → AEMAgent → nlog.config
Extended logging for the aemagent.log is in this location on the device: %ProgramData% → CentraStage → AEMAgent → nlog.config
NOTE You may need to change the write permissions for the nlog.config file to allow you to edit the file and save the changes.
- Make a copy of the nlog.config file before making any changes to it.
- Right-click on nlog.config and edit the file:
- Save and exit the file.
FROM:
<rules><logger name="log" minlevel="info" writeTo="log,console"></logger><logger name="alert" minlevel="info" writeTo="alert"></logger><logger name="error" minlevel="info" writeTo="error"></logger><logger name="poll" minlevel="info" writeTo="poll"></logger></rules>
TO:
<rules><logger name="log" minlevel="trace" writeTo="log,console"></logger><logger name="alert" minlevel="trace" writeTo="alert"></logger><logger name="error" minlevel="trace" writeTo="error"></logger><logger name="poll" minlevel="trace" writeTo="poll"></logger></rules>
Now when you view the Log.txt file, the extra lines containing DEBUG information will appear.
To enable the extended logging for Mac
Enabling extended logging on a MAC is similar to Windows.
Go to Applications → AEM Agent.app → Contents → Resources → nlog.config and enable trace on the file.