dev@glassfish.java.net

Re: log file encoding

From: vince kraemer <Vince.Kraemer_at_Sun.COM>
Date: Mon, 20 Jul 2009 09:49:15 -0700

OK.

Thanks for the info.

I would like to suggest that we do force the log to be encoded as
UTF-8... or some other known, constant encoding.

I have seen a couple instances where an app that reads the log file has
a different default encoding than the server. The log ends up being a
garbled mess.... but in the current 'state of affairs', a client cannot
really know what encoding was used to write the data into the log file,
which makes it difficult to correct.

vbk

Carla Mott wrote:
> There's nothing in the logging code that forces utf-8.
>
> vince kraemer wrote:
>> Can anyone speak to this?
>>
>> Thanks,
>> vbk
>>
>> vince kraemer wrote:
>>> I had heard that the log file is always written in utf-8, regardless
>>> of the default file encoding. Is that true?
>>>
>>>
>>> Thanks,
>>> vbk
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>