Sorry! Unfamiliar with this BBS... Let me try again..:
I am having a problem re-configuring the JBOSS log files. I am running 4.0.1SP1. I had the
log files configured like this, which pretty much is the config supplied by the
third-party app vendor:
| <!-- A time/date based rolling appender -->
| <appender name="FILE"
class="org.jboss.logging.appender.DailyRollingFileAppender">
| <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File"
value="${jboss.server.home.dir}/log/server.log"/>
| <param name="Append" value="false"/>
|
| <!-- Rollover at midnight each day -->
| <param name="DatePattern"
value="'.'yyyy-MM-dd"/>
|
| <!-- Rollover at the top of each hour
| <param name="DatePattern"
value="'.'yyyy-MM-dd-HH"/>
| -->
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="%d %-5p [%c]
%m%n"/>
|
| <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
| <param name="ConversionPattern" value="%d %-5r %-5p [%c]
(%t:%x) %m%n"/>
| -->
| </layout>
| </appender>
|
|
This produced daily log files, and only a little bit of boot.log output. I decided that I
wanted a size-based logging system, so I altered the log4j.xml file to remove the above,
and substituted this:
| <!-- A size based file rolling appender -->
| <appender name="FILE"
class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File"
value="${jboss.server.home.dir}/log/server.log"/>
| <param name="Append" value="true"/>
| <param name="MaxFileSize" value="10MB"/>
| <param name="MaxBackupIndex" value="25"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c]
%m%n"/>
| </layout>
| </appender>
|
After saving the log4j.xml file, I restarted the JBOSS server. Now, I get no server log
files, only a boot.log file that seems to be growing at the rate of 2MB / min.
What am I missing?? Something simple, I'm sure. TIA for the help!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212407#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...