logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T Master" <tmas...@iknowledgeinc.com>
Subject Re: FileAppender support for file.encoding property
Date Thu, 10 Jan 2002 01:34:42 GMT
Thanks for your reply.

Dare I upgrade log4j from 1.1.3 to 1.2 in a production environment ?
Your opinion please?  If not, I'll extend RollingFileAppender for support
with log4j1.1.3 (whatever the current version im is)'.


No coincidence.  All Great minds think alike :o)

I've coded up a portion.  One problem I found was OutputStreamWriters
constructors don't allow appending to be set together with the encoding
property.
Either one or the other.

Anyway, thanks for another prompt reply again.

T Master

----- Original Message -----
From: "Ceki Gülcü" <ceki@qos.ch>
To: "Log4J Users List" <log4j-user@jakarta.apache.org>
Sent: Wednesday, January 09, 2002 6:20 PM
Subject: Re: FileAppender support for file.encoding property


>
> Hi,
>
> Ooops. I am afraid you are somewhat late.  Encoding support is already in
log4j 1.2alpha5.
>
> Did you already code? If you did, it would be interesting to see if your
code differs from what already exists.
>
> To answer your question. All of 1, 2, 3 and 4 are OK. My order of
preference is:
>
> 1, 2, 3, 4. (coincidence?)
>
> Attachments are safer. Some email agents wrap lines at their own will
which seriously messes up diff files.
>
> I strongly prefer diff files to be in the unified format (diff -u option)
which allows to "read" the diff file without actually applying it.
>
> In this case, log4j-dev would seem better suited.
>
> Hope this answers your questions. Ceki
>
> At 18:02 09.01.2002 -0700, you wrote:
> >Ceki,
> >
> >I am writing the code to modify FileAppender to support a file encoding
> >i.e. output a Character encoding other than the default for the host
> >platform.
> >
> >How would you like this information?
> > 1.  A diff result  as a file ?
> > 2.  A diff result as a copy/paste into an email  (easy to read)
> > 3. Whole .java  as a file.
> > 4.  Whole  .java as a copy/paste into an email (easy to read).
> >
> >
> >Which email address should I use?    log4j-user@jakarta.apache.org   ?
> >
> >In my current project I need to support unicode (UTF-8) output to log
files.
> >Log4J does not currently allow me to change the default encoding for my
> >FileAppenders thought the API.
> >
> >Regards and HTH :o)
> >
> >T Master
>
> --
> Ceki Gülcü - http://qos.ch



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