Working with Logs

You are reading the AEM 6.2 version of Working with Logs.
This documentation is also available for the following versions:  AEM 6.3  AEM 6.1  AEM 6.0  AEM 5.6.1  AEM 5.6  CQ 5.5 

This section includes detailed information on logs available to help you troubleshoot.

CRX records detailed logs. After you unpack and start Quickstart, you can find logs in the following locations:

  • crx-quickstart/launchpad/logs
  • crx-quickstart/server/logs
  • crx-quickstart/logs

Activating the DEBUG Log Level

The default log level is INFO, that is, DEBUG messages are not logged.

To activate DEBUG log level, use the CRX explorer to set the

/libs/sling/config/org.apache.sling.commons.log.LogManager/org.apache.sling.commons.log.level
        

Code samples are intended for illustration purposes only.

property to debug. Do not leave the log at the DEBUG log level longer than necessary, as it generates a lot of logs.

A line in the debug file usually starts with DEBUG, and then provides the log level, the installer action and the log message. For example:

DEBUG 3 WebApp Panel: WebApp successfully deployed
        

Code samples are intended for illustration purposes only.

The log levels are as follows:
0 Fatal error The action has failed, and the installer cannot proceed.
1 Error The action has failed. The installation proceeds, but a part of CRX was not installed correctly and will not work.
2 Warning The action has succeeded but encountered problems. CRX may or may not work correctly.
3 Information The action has succeeded.

Verbose Option Used for Troubleshooting

When you start CRX, you can add the –v (verbose) option to the command line as in:

    java -jar crx-<version>-<edition>.jar -v

Use the verbose option for troubleshooting as this option displays some of the quickstart log output on the console.

Any questions?

Have a question about this or any other AEM topic? Ask our Community.
Learn more about AEM topics on our help hub.
Was this helpful?

By submitting your feedback, you accept the Adobe Terms of Use.

Thank you for submitting your feedback.

On this page