Question
How do I configure the paths of the CQ5 log files?
Answer, Resolution
CRX Logs: crx-quickstart/logs/crx/error.log and crx-quickstart/logs/crx/translation.logYou can find the log paths for CRX undercrx-quickstart/server/runtime/0/_crx/WEB-INF/log4j.xml
.You can change all log paths under the appender File
parameters.e.g.
After restarting your server these changes would take effect.
Servlet Engine Logs: crx-quickstart/server/logs/access.logYou can find the log paths for the servlet engine logs under crx-quickstart/server/etc/server.xml
e.g.
<log-file> <log-file-name>logs/access.log</log-file-name> </log-file>
Sling Logs: crx-quickstart/logs/error.log
You can configure the sling error.log which is normally under crx-quickstart/logs/error.log
in this file:
crx-quickstart/launchpad/config/org/apache/sling/commons/log/crx-quickstart/launchpad/config/org/apache/sling/commons/log/LogManager.config
alternatively the same configuration can be done at runtime via the Felix console under/system/console/configMgr/org.apache.sling.commons.log.LogManager
http://localhost:4504/system/console/configMgr/org.apache.sling.commons.log.LogManager
Sling Logs: crx-quickstart/request.log and crx-quickstart/access.log
You can configure the access.log and request.log paths here:
crx-quickstart/launchpad/config/org/apache/sling/engine/impl/log/RequestLogger.config
alternatively the same configuration can be done at runtime via the Felix console under/system/console/configMgr/org.apache.sling.engine.impl.log.RequestLogger
http://localhost:4504/system/console/configMgr/org.apache.sling.engine.impl.log.RequestLogger
Apache Felix Logs: crx-quickstart/launchpad/logs/error.log
You can configure the crx-quickstart/launchpad/logs/error.log
path in crx-quickstart/launchpad/sling.properties
file under the property:
org.apache.sling.commons.log.file
Applies to
CQ5.X