CQ5 setting DEBUG log severity for a package

The felix web management configuration console provided with CQ5, the one generally accessible via http://localhost:4502/system/console allow you to specify different severity for different packages as you can do with log4j property file.

  1. Access the console
  2. Click on configuration
  3. In the Configurations combo box select Apache Sling Logging Configuration
  4. In the Factory Configurations having selected the Apache Sling Logging Logger Configuration click the Create button
  5. in the Logger textbox input the package you like. You can add/remove packages/classes with the +/- button on the right side.
  6. Trigger all other desired parameters
  7. Click Save.


2 thoughts on “CQ5 setting DEBUG log severity for a package

  1. Good tip! I usually setup CQ application specific logging to its own log file. If you change the /logs/error.log to /logs/myapplication.log and set the Logger to your application package (e.g. com.mycompany.myapp), then your application specific log shows up under ./crx-quickstart/launchpad/logs/myapplication.log.

  2. The path of the logfile is relative to the launchpad directory, so if you want to have your logfile side-by-side to the CQ5 error.log file, specify it as “../logs/logfilename”. So don’t be surprised, if you miss the “../” and don’t find it there.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s