This content has been marked as final.
Show 3 replies
-
1. Re: server.log size is too big
mmichalek Jan 11, 2008 3:07 PM (in response to asookazian)WARN is usually good for production. DEBUG is a very fine log level and is usually appropriate for development or problem solving.
-
2. Re: server.log size is too big
sjmenden Jan 11, 2008 3:30 PM (in response to asookazian)You can set in the file appender also.
I'd go with INFO over WARN and use
As if you are a production support customer, we almost always ask for your server.log, and it may save you some time if you can upload a log straight to us without changing the Threshold back to INFO and reproducing the problem, and a filesize of 2MB is good, it is not easy to wade through a 200MB log file.
-Samuel -
3. Re: server.log size is too big
sjmenden Jan 11, 2008 3:31 PM (in response to asookazian)code tags would help :)
<appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender"> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> <param name="File" value="${jboss.server.log.dir}/server.log"/> <param name="Append" value="false"/> <param name="MaxFileSize" value="2000KB"/> <param name="MaxBackupIndex" value="1"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> </layout> </appender>