[jboss-user] [Installation, Configuration & DEPLOYMENT] - Logging into separate Files
groscurth
do-not-reply at jboss.com
Tue May 13 08:20:48 EDT 2008
Hi,
i want to log the web applications into separate files. I found the documentation about how to do that in the jboss wiki and it works.
<appender name="App1Log" class="org.apache.log4j.FileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Append" value="false"/>
| <param name="File" value="${jboss.server.home.dir}/log/app1.log"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
| </layout>
| <filter class="org.jboss.logging.filter.TCLFilter">
| <param name="AcceptOnMatch" value="true"/>
| <param name="DeployURL" value="app1.ear"/>
| </filter>
| </appender>
|
| ...
|
| <root>
| <appender-ref ref="CONSOLE"/>
| <appender-ref ref="FILE"/>
| <appender-ref ref="App1Log"/>
| </root>
The problem is - it still logs on the console (server.log respectively).
What do i have to do that it logs only in the given file (using categories is not possible, because several applications using shared libraries) ?
And how do i set the log level in that system ?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150342#4150342
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150342
More information about the jboss-user
mailing list