KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am using log4j for logging, and a property file for configuration. Currently, my log files are too big (3.5 GB is too large for a log file). So think I need to use RollingFileAppender - but when I do so the log file continues to grow overly large. I believe I have just misconfigured it; does anyone have a working example of configuring RollingFileAppender? For the record, my current configuration looks like this: log4j.appender.MAIN_LOG.File=${catalina.base}/logs/webtop.log log4j.appender.MAIN_LOG=org.apache.log4j.RollingFileAppender log4j.appender.MAIN_LOG.layout=com.mycompany.util.log.Log4JSimpleLayout log4j.appender.MAIN_LOG.DatePattern='.'yyyy-MM-dd log4j.appender.MAIN_LOG.MaxFileSize=10MB log4j.appender.MAIN_LOG.MaxBackupIndex=99 log4j.appender.MAIN_LOG.append=true log4j.rootCategory=ALL, MAIN_LOG An alternative to RollingFileAppender would also be a fine solution.
Tags (comma-separated)
Save Edits
Cancel