[jboss-user] [Installation, Configuration & Deployment] - Re: Rolling over JBoss console log
ramdas
do-not-reply at jboss.com
Tue Sep 12 20:46:43 EDT 2006
Peter,
In my configuration, when JBoss starts, the console output is redirected to a file (using start_jboss.sh > console.log 2>&1).
I am trying to find a way to rollover the log file which is being created as a result of redirecting console output.
I realize that the format of the data output to the console is being influenced by the following in log4j.xml
| <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Target" value="System.out"/>
| <param name="Threshold" value="INFO"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="%d %-5p [%c{1}] %m%n"/>
| </layout>
| </appender>
|
I tried using an element in log4j.xml similar to the one i have used for creating and rolling over the JBoss server.log. But it does not have any influence on console.log - which i think makes sense since the console.log file is not created by log4j but by my shelll script which is redirecting the console output.
I am trying to find if there is a way to capture the console output to a file and also rollover that file every day.
Thanks
Ramdas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971154#3971154
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971154
More information about the jboss-user
mailing list