logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: ConsoleAppender encoding
Date Wed, 05 Jun 2002 13:47:37 GMT


ConsoleAppender does not support character encoding although adding it
should be easy. Just look at the source code of FileAppender class.

This is an omission that will be fixed for the next maintenance release of
log4j.

At 14:06 05.06.2002 +1000, you wrote:
>Hi, I'm trying to make console output look readable :) However,
>nothing changes in output at all, whatever encoding I set (usually, if
>you change encoding, letters start to look differently). Here's my
>config:
>
><log4j:configuration debug="true">
><appender name="stdout" class="org.apache.log4j.ConsoleAppender">
><param name="Encoding" value="Cp866"/>
><layout class="org.apache.log4j.PatternLayout">
>         <param name="ConversionPattern"
>                 value="%d{dd/MM/yyyy HH:mm:ss} %-5p (%F:%L) - %m\n"/>
></layout>
></appender>
>
><root>
><appender-ref ref="stdout"/>
></root>
></log4j:configuration>
>
>Here's the output I get with debug on:
>log4j: Class name: [org.apache.log4j.ConsoleAppender]
>log4j: Setting property [encoding] to [Cp866].
>log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
>log4j: Setting property [conversionPattern] to [%d{dd/MM/yyyy HH:mm:ss} 
>%-5p (%F
>:%L) - %m].
>log4j: Adding appender named [stdout] to category [root].
>
>Any ideas?
>
>--
>Best regards,
>  Dmitry                          mailto:ledestin@amur.ru
>
>
>--
>To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
Ceki

SUICIDE BOMBING - A CRIME AGAINST HUMANITY
Sign the petition: http://www.petitiononline.com/1234567b
I am signatory number 22106. What is your number?


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


Mime
View raw message