logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: logging-log4j/examples/src/pattern CountingPatternConverter.java
Date Thu, 16 Sep 2004 19:39:19 GMT
ceki        2004/09/16 12:39:19

  Modified:    examples/src/pattern CountingPatternConverter.java
  Log:
  - Added a getStyleClass() method to PatternConverter and derived classes.
  
  Revision  Changes    Path
  1.4       +5 -0      logging-log4j/examples/src/pattern/CountingPatternConverter.java
  
  Index: CountingPatternConverter.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/examples/src/pattern/CountingPatternConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CountingPatternConverter.java	28 May 2004 16:28:57 -0000	1.3
  +++ CountingPatternConverter.java	16 Sep 2004 19:39:19 -0000	1.4
  @@ -22,6 +22,7 @@
   
   public class CountingPatternConverter extends PatternConverter {
     static private final String NAME = "Count";
  +  static private final String STYLE_CLASS = NAME.toLowerCase();
     
     StringBuffer buf;
     int counter = 0;
  @@ -42,5 +43,9 @@
     
     public String getName() {
       return NAME;
  +  }
  +  
  +  public String getStyleClass(LoggingEvent e) {
  +    return STYLE_CLASS;
     }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message