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 ConsoleAppender.java
Date Fri, 09 Apr 2004 10:40:24 GMT
ceki        2004/04/09 03:40:24

  Modified:    src/java/org/apache/log4j ConsoleAppender.java
  Log:
  
  Added Michael Zhou's patch.
  
  Revision  Changes    Path
  1.16      +4 -4      logging-log4j/src/java/org/apache/log4j/ConsoleAppender.java
  
  Index: ConsoleAppender.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/ConsoleAppender.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ConsoleAppender.java	27 Feb 2004 16:47:28 -0000	1.15
  +++ ConsoleAppender.java	9 Apr 2004 10:40:24 -0000	1.16
  @@ -47,9 +47,9 @@
       this.layout = layout;
   
       if (SYSTEM_OUT.equals(target)) {
  -      setWriter(new OutputStreamWriter(System.out));
  +      setWriter(createWriter(System.out));
       } else if (SYSTEM_ERR.equalsIgnoreCase(target)) {
  -      setWriter(new OutputStreamWriter(System.err));
  +      setWriter(createWriter(System.err));
       } else {
         targetWarn(target);
       }
  @@ -89,9 +89,9 @@
   
     public void activateOptions() {
       if (target.equals(SYSTEM_OUT)) {
  -      setWriter(new OutputStreamWriter(System.out));
  +      setWriter(createWriter(System.out));
       } else {
  -      setWriter(new OutputStreamWriter(System.err));
  +      setWriter(createWriter(System.err));
       }
     }
   
  
  
  

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