You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by pr...@apache.org on 2003/12/14 21:33:55 UTC

cvs commit: avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger SimpleLogKitManager.java

proyal      2003/12/14 12:33:55

  Modified:    logger/src/java/org/apache/avalon/excalibur/logger
                        SimpleLogKitManager.java
  Log:
  Patch from Mauro Talevi to control whether a file target allows appending
  
  Revision  Changes    Path
  1.9       +2 -1      avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/SimpleLogKitManager.java
  
  Index: SimpleLogKitManager.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/SimpleLogKitManager.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- SimpleLogKitManager.java	5 Dec 2003 15:13:53 -0000	1.8
  +++ SimpleLogKitManager.java	14 Dec 2003 20:33:55 -0000	1.9
  @@ -204,6 +204,7 @@
               final String name = target.getAttribute( "name" );
               String location = target.getAttribute( "location" ).trim();
               final String format = target.getAttribute( "format", DEFAULT_FORMAT );
  +            final boolean append = target.getAttributeAsBoolean( "append", true );
   
               if( '/' == location.charAt( 0 ) )
               {
  @@ -219,7 +220,7 @@
               FileTarget logTarget = null;
               try
               {
  -                logTarget = new FileTarget( file.getAbsoluteFile(), true, formatter );
  +                logTarget = new FileTarget( file.getAbsoluteFile(), append, formatter );
               }
               catch( final IOException ioe )
               {
  
  
  

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