Engineering a New World

Something Can Be Done About It

Debug/Info Logging for a Particular Java Class in Adobe CQ 5

In Adobe CQ5, it sometimes becomes necessary to make a particular package or class spit out DEBUG level log entries in order to troubleshoot problems.

1) From the error.log, determine the class that you want to bump up logging on.  I.e. let’s say you’ve got system logging turned up to Warn and you want to see the INFO level progress of your datastore Garbage Collection (com.day.crx.persistence.tar.utils.DataStoreGarbageCollector)

2) Add a INFO logger configuration for that class.

In the OSGI configuration console at /system/console/configMgr , search for “Apache Sling Logger Configuration” and click the plus sign to its right.  The class name should be in the field labelled “Logger”.  See example below.

Screenshot of updating Adobe CQ5 Logging Config

Advertisements

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

Information

This entry was posted on April 4, 2014 by in technology and tagged , , , , , , , .
%d bloggers like this: