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

  1. On your device, navigate to the nlog.config file:
  2. 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.

  3. Make a copy of the nlog.config file before making any changes to it.
  4. Right-click on nlog.config and edit the file:
  5. FROM:

    logger name="*" minlevel="Info" writeTo="file" />

    TO:

    logger name="*" minlevel="Trace" writeTo="file" />
  6. Save and exit the file.
  7. Restart the Datto RMM Agent.
  8. 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
nlog.png

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.

  1. Make a copy of the nlog.config file before making any changes to it.
  2. Right-click on nlog.config and edit the file:
  3. 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>
  4. Save and exit the file.
  5. 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.