Tomcat log4j Logfile still growing

  • Thread starter thorsten.druckenmueller
  • Start date
T

thorsten.druckenmueller

Hi,

I've an Tomcat application running with this log4j configuration.

log4j.rootLogger=INFO, MyFileAppender, MyConsoleAppender

log4j.appender.MyConsoleAppender=org.apache.log4j.ConsoleAppender
log4j.appender.MyConsoleAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.MyConsoleAppender.layout.ConversionPattern=%-4r %d [%t]
%X{sessionId} %-5p %c %x - %m%n

log4j.appender.MyFileAppender=org.apache.log4j.RollingFileAppender
log4j.appender.MyFileAppender.File=ivr.log

log4j.appender.MyFileAppender.MaxFileSize=5000KB
log4j.appender.MyFileAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.MyFileAppender.layout.ConversionPattern=%-4r %d [%t]
%X{sessionId} %-5p %c %x - %m%n

First of all, the log outout is not located in the file specified
"ivr.log", it's all in tomcat stdout_xxxx.log Files. The File format is
as expected but Tomcat does'nt care about the MaxFileSize. The logfile
ist growing and growing.
How can I handle this?

/thorsten
 
B

bharat_sharma_5005

Hi,

I've an Tomcat application running with this log4j configuration.

log4j.rootLogger=INFO, MyFileAppender, MyConsoleAppender

log4j.appender.MyConsoleAppender=org.apache.log4j.ConsoleAppender
log4j.appender.MyConsoleAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.MyConsoleAppender.layout.ConversionPattern=%-4r %d [%t]
%X{sessionId} %-5p %c %x - %m%n

log4j.appender.MyFileAppender=org.apache.log4j.RollingFileAppender
log4j.appender.MyFileAppender.File=ivr.log

log4j.appender.MyFileAppender.MaxFileSize=5000KB
log4j.appender.MyFileAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.MyFileAppender.layout.ConversionPattern=%-4r %d [%t]
%X{sessionId} %-5p %c %x - %m%n

First of all, the log outout is not located in the file specified
"ivr.log", it's all in tomcat stdout_xxxx.log Files. The File format is
as expected but Tomcat does'nt care about the MaxFileSize. The logfile
ist growing and growing.
How can I handle this?

/thorsten
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top