Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: How to limit the size of stdout and stderr log files in log4 |
|
Author |
|
pKumar4Forum
Joined: 21 Apr 2016 Posts: 1 Location: India, Pune
|
Posted: Thu 21 Apr '16 8:31 Post subject: How to limit the size of stdout and stderr log files in log4 |
|
|
Hello,
I need to limit the size of stdout and stderr log file which is automatically created on tomcat>log location. I am using tomcat7 and windows
I used may configuration but it is not working.
Please suggest me how to limit the size of log file or roll these files.
I used
log4j.appender.stderr = org.apache.log4j.ConsoleAppender
log4j.appender.stderr.Threshold = WARN
log4j.appender.stderr.Target = System.err
log4j.appender.stderr.layout = org.apache.log4j.PatternLayout
log4j.appender.stderr.layout.ConversionPattern = %-5p %d [%t][%F:%L] : %m%n
I did changes in context.xml of conf folder
Context swallowOutput="true"
Tried other configuration also but nothing happen. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|