logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/log4j/rule RuleTest.java
Date Mon, 10 May 2004 22:25:07 GMT
psmith      2004/05/10 15:25:07

  Modified:    src/java/org/apache/log4j/rule RuleTest.java
  Log:
  getMDC* methods are gone.... All hail getProperty* methods.
  
  Revision  Changes    Path
  1.4       +2 -2      logging-log4j/src/java/org/apache/log4j/rule/RuleTest.java
  
  Index: RuleTest.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/rule/RuleTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RuleTest.java	28 Mar 2004 10:14:02 -0000	1.3
  +++ RuleTest.java	10 May 2004 22:25:07 -0000	1.4
  @@ -143,14 +143,14 @@
   
             while (iter2.hasNext()) {
               LoggingEvent event = (LoggingEvent) iter2.next();
  -            Iterator iter3 = event.getMDCKeySet().iterator();
  +            Iterator iter3 = event.getPropertyKeySet().iterator();
               StringBuffer mdc = new StringBuffer();
   
               while (iter3.hasNext()) {
                 String mdcKey = (String) iter3.next();
                 mdc.append(mdcKey);
                 mdc.append(":");
  -              mdc.append(event.getMDC(mdcKey));
  +              mdc.append(event.getProperty(mdcKey));
               }
   
               results.setText(
  
  
  

---------------------------------------------------------------------
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