I do a performance test on WSO2 ESB. And I found the log is too big that can not open. The biggest file is 7.20GB. I think this is a big problem. I want to set every log file less than 20MB, and I want delete old logs automatic. How to set this? Anyone can help me?
相关问题
- I want to trace logs using a Macro multi parameter
- Error message 'No handlers could be found for
- convert logback.xml to log4j.properties
- Django management command doesn't show logging
- apache modules ap_log_perror is at a different lev
相关文章
- how do I log requests and responses for debugging
- Android Studio doesn't display logs by package
- Stacktrace does not print in Glassfish 4.1 Cluster
- Out of curiosity — why don't logging APIs impl
- Laravel log file based on date
- Java -How to get logger to work in shutdown hook?
- Codeigniter not logging
- Is there any way to remove the information line fr
You can configure logging in ESB_HOME/repository/conf/log4j.properties file.
Add following configurations in the
log4j.appender.CARBON_LOGFILE=org.apache.log4j.RollingFileAppender
section.So this will ensure total 2MB * 1000 will be used. i. e first 1000 entries of 2MB chunks will be retained
You can configure http_access_log by editing the catalina-server.xml which is located {CARBON_HOME}/repository/conf/tomcat directory and add renameOnRotate in the AccessLogValve
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="${carbon.home}/repository/logs" renameOnRotate="true" prefix="http_access_" suffix=".log pattern="combined" />
Please refer [1] for more details
[1] - http://sparkletechthoughts.blogspot.com/2013/07/configure-access-logging-in-wso2.html