logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Petrunia" <ser...@rwwws.ru>
Subject ConsoleAppender ignores charset settings (fix included)
Date Wed, 06 Nov 2002 20:50:16 GMT
Hello,

 It looks like ConsoleAppender parses but ignores the "encoding"
parameter. Below is the patch to ConsoleAppender.java that makes
ConsoleAppender to use correct encoding.  Could this make it into the
next release of log4j ?

BR
--Sergey Petrunia

--- ConsoleAppender.java	2002-11-06 23:29:12.000000000 +0300
+++ ConsoleAppender.java	2002-10-09 23:43:50.000000000 +0400
@@ -38,9 +38,9 @@
41c41
<       setWriter(createWriter(System.out));
---
>       setWriter(new OutputStreamWriter(System.out));
43c43
<       setWriter(createWriter(System.err));
---
>       setWriter(new OutputStreamWriter(System.err));
86c86
<       setWriter(createWriter(System.out));
---
>       setWriter(new OutputStreamWriter(System.out));
88c88
<       setWriter(createWriter(System.err));
---
>       setWriter(new OutputStreamWriter(System.err));


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


Mime
View raw message