https://issues.apache.org/bugzilla/show_bug.cgi?id=55499
Bug ID: 55499
Summary: Log file is exceeding the limit MaxFileSize
Product: Log4j
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Configurator
Assignee: [email protected]
Reporter: [email protected]
Hi,
Please see the below setting for our application logging, but I see that the
log file size is exceeding the MaxFileSize on our Linux production environment.
# Root category
log4j.rootCategory=INFO,stdout
# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{DATE} %c{3} %p - %m%n
# Category for SPOT application
log4j.category.SPOTLogFile=INFO, SPOTLogFile
# SPOTLogFile appender
log4j.appender.SPOTLogFile=org.apache.log4j.RollingFileAppender
log4j.appender.SPOTLogFile.MaxFileSize=200MB
log4j.appender.SPOTLogFile.immediateFlush=true
log4j.appender.SPOTLogFile.MaxBackupIndex=50
#log4j.appender.SPOTLogFile.File=C:/SBM76/logs/SPOTlog.log
log4j.appender.SPOTLogFile.File=/logs/SPOTlog.log
log4j.appender.SPOTLogFile.append=true
log4j.appender.SPOTLogFile.layout=org.apache.log4j.PatternLayout
log4j.appender.SPOTLogFile.layout.ConversionPattern=%d{DATE} %c{3} %p - %m%n
File listing which is exceeding the MaxFileSize=200MB
-rw-r----- 1 wasp04 hostnggp 401M Aug 28 19:31 SPOTlog.log.2
-rw-r----- 1 wasp04 hostnggp 8.6M Aug 29 01:55 SPOTlog.log.1
-rw-r----- 1 wasp04 hostnggp 8.9M Aug 29 07:01 SPOTlog.log
Please help.
Thanks,
Anup Khandelwal
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]