Hi Su,
You can make the log files roll over each day by changing the log4j.properties file located in : <ebase_install_directory>/UfsServer/tomcat/common/classes directory.
You need to replace the following :
Code: Select all
log4j.appender.Log4J=org.apache.log4j.RollingFileAppender
log4j.appender.Log4J.File=../logs/ebase.log
log4j.appender.Log4J.MaxFileSize=100MB
log4j.appender.Log4J.MaxBackupIndex=5
log4j.appender.Log4J.layout=org.apache.log4j.PatternLayout
log4j.appender.Log4J.layout.ConversionPattern=%10r [%-5c{1}] %7p - %C{1}.%M(%L) : %m\n
with
Code: Select all
log4j.appender.Log4J=org.apache.log4j.DailyRollingFileAppender
log4j.appender.Log4J.File=../logs/ebase.log
log4j.appender.Log4J.DatePattern='.'yyyy-MM-dd
log4j.appender.Log4J.layout=org.apache.log4j.PatternLayout
log4j.appender.Log4J.layout.ConversionPattern=%10r [%-5c{1}] %7p - %C{1}.%M(%L) : %m\n
You will need to do that for each of the log file appenders: log4j.appenderRequests, log4j.appenderXAPool and log4j.appender.Log4J
To change the time to roll over you just need to change the log4j.appender.Log4J.DatePattern to a different pattern.
e.g
log4j.appender.[Appender].DatePattern='.'yyyy-MM-dd-HH-mm rolls the logs over every minute.
For more information about the patterns see
http://logging.apache.org/log4j/1.2/apidocs/index.html
I hope this helps.