Thank you!

--Pete 

> -----Original Message-----
> From: Curt Arnold [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 26, 2005 12:47 PM
> To: Log4J Users List
> Subject: Re: Enforcing encoding in a DailyRollingFileAppender
> 
> 
> 
> On Jul 26, 2005, at 12:16 PM, Ford, Peter wrote:
> 
> > Hi all,
> >
> > Is there a way to set up my log4j.xml to configure a
> > DailyRollingFileAppender in such a way that the file is written  
> > using a
> > specific encoding? I'm running my app on a system that has  
> > ISO-8859-1 as
> > its platform default, but I really need it to write the 
> logs in UTF-8.
> > What I'm hoping for is a simple <param name="something"  
> > value="UTF-8"/>
> > tag that I can add to my config. I don't want to have to 
> make a change
> > in the code unless there is no alternative.
> 
> 
> <param name="encoding" value="UTF-8"/>
> 
> should work.  WriterAppender has a setEncoding() method that  
> DailyRollingFileAppender inherits.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to