avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger/factory FormatterFactory.java
Date Sat, 26 Jan 2002 22:00:40 GMT
donaldp     02/01/26 14:00:40

  Modified:    src/java/org/apache/avalon/excalibur/logger/factory
                        FormatterFactory.java
  Log:
  Made cascading and stack depth configurable options of AvalonFormatter formatter.
  
  Submitted By: Jeremias Maerki <jeremias.maerki@outline.ch>
  
  Revision  Changes    Path
  1.3       +3 -1      jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger/factory/FormatterFactory.java
  
  Index: FormatterFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger/factory/FormatterFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FormatterFactory.java	19 Dec 2001 23:04:40 -0000	1.2
  +++ FormatterFactory.java	26 Jan 2002 22:00:40 -0000	1.3
  @@ -34,7 +34,9 @@
           
           if( "avalon".equals( type ) )
           {
  -            return new AvalonFormatter( format );
  +            int depth = conf.getAttributeAsInteger( "depth", AvalonFormatter.DEFAULT_STACK_DEPTH
);
  +            boolean printCascading = conf.getAttributeAsBoolean( "cascading", AvalonFormatter.DEFAULT_PRINT_CASCADING
);
  +            return new AvalonFormatter( format, depth, printCascading );
           }
           
           if( "extended".equals( type ) )
  
  
  

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


Mime
View raw message