avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject cvs commit: avalon/logging/test/conf/log4j log4j.properties log4j.xml
Date Sun, 29 Feb 2004 23:44:37 GMT
niclas      2004/02/29 15:44:37

  Modified:    logging/test/conf/log4j log4j.properties log4j.xml
  Log:
  Fixed that Exception in testcases doesn't show on screen.
  
  Revision  Changes    Path
  1.2       +14 -0     avalon/logging/test/conf/log4j/log4j.properties
  
  Index: log4j.properties
  ===================================================================
  RCS file: /home/cvs/avalon/logging/test/conf/log4j/log4j.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- log4j.properties	25 Feb 2004 11:28:04 -0000	1.1
  +++ log4j.properties	29 Feb 2004 23:44:37 -0000	1.2
  @@ -0,0 +1,14 @@
  +
  +log4j.rootLogger=DEBUG, A1
  +log4j.appender.A1=org.apache.log4j.FileAppender
  +log4j.appender.A1.file=target/alt-output.log
  +
  +log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  +
  +# Print the date in ISO 8601 format
  +log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
  +
  +# Print only messages of level WARN or above in the package com.foo.
  +log4j.logger.org.apache.avalon.logging=DEBUG
  +log4j.logger.kernel.logger=WARN
  +log4j.logger.kernel.logger.test=DEBUG
  
  
  
  1.2       +8 -1      avalon/logging/test/conf/log4j/log4j.xml
  
  Index: log4j.xml
  ===================================================================
  RCS file: /home/cvs/avalon/logging/test/conf/log4j/log4j.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- log4j.xml	25 Feb 2004 11:28:04 -0000	1.1
  +++ log4j.xml	29 Feb 2004 23:44:37 -0000	1.2
  @@ -11,6 +11,13 @@
       </layout>
     </appender>
   
  +  <appender name="FILE" class="org.apache.log4j.FileAppender">
  +    <param name="File" value="target/output.log"/>
  +    <layout class="org.apache.log4j.PatternLayout">
  +      <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
  +    </layout>
  +  </appender>
  +  
     <category name="org.apache.avalon.logging">
       <priority value="DEBUG"/>
     </category>
  @@ -24,7 +31,7 @@
     </category>
   
     <root>
  -    <appender-ref ref="CONSOLE"/>
  +    <appender-ref ref="FILE"/>
     </root>
   
   </log4j:configuration>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message