[jboss-user] [Installation, Configuration & Deployment] - Re: log messages printed twice to the console

Elhanan do-not-reply at jboss.com
Mon Aug 24 15:42:35 EDT 2009


this is the one inf the ear file

  | <?xml version='1.0' encoding='ISO-8859-1' ?>
  | <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  | 
  | <log4j:configuration>
  | 
  |     <appender name="PMP_FILE" class="org.apache.log4j.RollingFileAppender">
  |       <errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/>
  |       <param name="File" value="underwrite-log.log"/>
  |       <!--<param name="Append" value="false"/>-->
  |       <param name="MaxFileSize" value="5000KB"/>
  |       <param name="MaxBackupIndex" value="10"/>
  | 
  |       <layout class="org.apache.log4j.PatternLayout">
  |           <param name="ConversionPattern"
  |               value="%d{dd MMM yyyy HH:mm:ss,SSS} [%-5p] %c %x - %m%n"/>
  |       </layout>
  |     </appender>
  | 
  |     <appender name="PERF_FILE" class="org.apache.log4j.RollingFileAppender">
  |       <param name="File" value="pmp-perf-log.csv"/>
  |       <param name="MaxFileSize" value="5000KB"/>
  |       <param name="MaxBackupIndex" value="10"/>
  | 
  |       <layout class="org.apache.log4j.PatternLayout">
  |           <param name="ConversionPattern"
  |               value="%d{dd MMM yyyy HH:mm:ss,SSS} [%-5p] %c %x - %m%n"/>
  |       </layout>
  |     </appender>
  |  
  | <!--
  |    <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="DEBUG"/>
  | 
  |       <layout class="org.apache.log4j.PatternLayout">
  | 
  |          <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
  |       </layout>
  |    </appender>
  | -->
  |     <!--appender name="HB8_FILE" class="org.apache.log4j.RollingFileAppender">
  |       <param name="File" value="hb8-log.log"/>
  |       <param name="MaxFileSize" value="5000KB"/>
  |       <param name="MaxBackupIndex" value="10"/>
  | 
  |       <layout class="org.apache.log4j.PatternLayout">
  |           <param name="ConversionPattern"
  |               value="%d{dd MMM yyyy HH:mm:ss,SSS} [%-5p] %c %x - %m%n"/>
  |       </layout>
  |     </appender-->    
  | 
  | <!--
  |      <logger name="org.springframework.transaction" additivity="true">
  |         <level value="ALL"/>
  |         <appender-ref ref="PMP_FILE"/>
  | 	 <appender-ref ref="CONSOLE"/>
  | 
  |     </logger>
  |     -->
  |     <!--logger name="org.hibernate">
  |         <level        value="TRACE"/>
  |         <appender-ref ref="HB8_FILE"/>
  |     </logger-->    
  | 
  |     <!--<logger name="com.pnx.pmp.common.log.PerformanceWatch" additivity="false">
  |         <level value="DEBUG"/>
  |         <appender-ref ref="PERF_FILE"/>
  |     </logger>-->
  | 
  |     <!--
  |         <logger name="net.sf.hibernate.SQL">
  |             <level        value="DEBUG"/>
  |             <appender-ref ref="STDOUT"/>
  |         </logger>
  |     -->
  | 
  |     <!--
  |         <logger name="log4j.logger.org.apache">
  |             <level        value="WARN"/>
  |             <appender-ref ref="STDOUT"/>
  |         </logger>        
  | 
  |         <logger name="org.springframework">
  |             <level        value="INFO"/>
  |             <appender-ref ref="STDOUT"/>
  |         </logger>
  | 
  |         <logger name="net.sf.hibernate">
  |             <level        value="INFO"/>
  |             <appender-ref ref="STDOUT"/>
  |         </logger>
  | 
  |         <logger name="com.opensymphony.webwork">
  |             <level        value="INFO"/>
  |             <appender-ref ref="STDOUT"/>
  |         </logger>
  | 
  |         <logger name="org.apache.velocity">
  |             <level        value="INFO"/>
  |             <appender-ref ref="STDOUT"/>
  |         </logger>
  |     -->
  | 
  |     <!--
  |         Leave root definition commented !
  |         When uncommented it causes problems on JBoss.
  |     -->
  | 	<!--<root>-->
  | 		<!--<priority value="ERROR"/>-->
  |         <!--<appender-ref ref="FILE"/>-->
  | 	<!--</root>-->
  | 
  | </log4j:configuration>
  | 

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

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



More information about the jboss-user mailing list