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/src/java/org/apache/log4j/net SMTPAppender.java
Date Tue, 04 Jan 2005 19:56:51 GMT
ceki        2005/01/04 11:56:51

  Modified:    src/java/org/apache/log4j/net SMTPAppender.java
  Log:
  Corrections to SMTPAppender
  
  Revision  Changes    Path
  1.43      +3 -2      logging-log4j/src/java/org/apache/log4j/net/SMTPAppender.java
  
  Index: SMTPAppender.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/net/SMTPAppender.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- SMTPAppender.java	4 Jan 2005 07:58:53 -0000	1.42
  +++ SMTPAppender.java	4 Jan 2005 19:56:50 -0000	1.43
  @@ -132,7 +132,7 @@
       }
   
       if (subjectStr != null) {
  -      subjectConverterHead = new PatternParser(subjectStr).parse();
  +      subjectConverterHead = new PatternParser(subjectStr, this.repository).parse();
       }
       
       if (this.evaluator == null) {
  @@ -422,8 +422,9 @@
        for the SMTPAppender.
      */
     public void setEvaluatorClass(String value) {
  +    OptionConverter oc = new OptionConverter(this.repository);
       evaluator =
  -      (TriggeringEventEvaluator) OptionConverter.instantiateByClassName(
  +      (TriggeringEventEvaluator) oc.instantiateByClassName(
           value, TriggeringEventEvaluator.class, evaluator);
     }
   
  
  
  

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