Statement
- How to Suppress the Informational Log messages in log file to avoid the
growing of log files.
Pre-requsite
:
- JRE 1.8
- AEM 6.3 up and running.
- This cause log to Bloat
- storage cost and additional CPU cycles
- Increasing Disk I/O
- Leads to frequent mainatence
- Go to log file and find the INFO log messages in the
log files and identify which INFO log messages are getting generated and
log file is filled with.
- Identify the classname - Example : 11.05.2018 17:07:04.463 *INFO* [0:0:0:0:0:0:0:1 [1526029594249] GET /aem/start.html HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl detected [JS] library: /libs/cq/gui/components/common/wcm/clientlibs/wcm, sourced from 13 files.
- Go to Felix console : /system/console/configmgr
- Search for Apache
Sling Logging Logger Configuration
- Click on +icon to create new logging
configuration for com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl
- Set Log level to WARN
- Under Logger enter the
classname - com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl
- Save the changes
- That's it, all info messages from the class file which
are logged into the error.log will be suppressed
No comments:
Post a Comment