[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: separating Hibernate and Struts logs

jaikiran do-not-reply at jboss.com
Thu Feb 7 09:18:08 EST 2008


Yes it's possible. Something like this (just an example, the syntax and other stuff might be incorrect):

<appender name="HIB_APPENDER" class="org.apache.log4j.FileAppender">
  |      <param name="File" value="D:/log/HibernateLogs.log"/>
  |      <param name="Append" value="false"/>
  |      
  |      <layout class="org.apache.log4j.PatternLayout">
  |        <param name="ConversionPattern" value="%d{ISO8601} %-5p [%c] %m%n"/>
  |      </layout>	    
  |    </appender>
  |    
  | 
  | 
  | 
  | <appender name="STRUTS_APPENDER" class="org.apache.log4j.FileAppender">
  |      <param name="File" value="D:/log/StrutsLogs.log"/>
  |      <param name="Append" value="false"/>
  |      
  |      <layout class="org.apache.log4j.PatternLayout">
  |        <param name="ConversionPattern" value="%d{ISO8601} %-5p [%c] %m%n"/>
  |      </layout>	    
  |    </appender>
  |    
  |   <category name="org.hibernate">
  |         <appender-ref ref="HIB_APPENDER"/>
  |    </category>
  |    
  |    <category name="org.apache.struts">
  |            <appender-ref ref="STRUTS_APPENDER"/>
  |    </category>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127399#4127399

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127399



More information about the jboss-user mailing list