You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Epik, Sergiy" <S....@telesenskscl.com.ua> on 2001/11/02 16:03:01 UTC

i18n

I am study how to localize log using Log4J and java.util.logging.

There are two ways how log may be localized:
- localization at the source. User specify ResourceBundle for Category
and use l7dlog methods to log out. It's clear for me.
- target localization. User need to store locale independent information
to the log: resource identifier, resource bundle name, array of Objects 
(parameters for message format). Messages may be localized and formatted
by Log Viewer using user Locale.

For example, java.util.logging api will be used, it's clear. In this case i
need
to implement custom Formatter. The main feature is that 
LogRecord has information about resource bundle and format parameters.

In Log4J formatting and localization does by Category (or Logger in alpha
API),
not by Appender or by Renderer. LoggingEvent is not have information about 
messages parameters and resource bundle name.
What are the plans to make changes in org.apache.log4j.Logger api?

Thanks.

Best regards, 
Sergey Epik

Programmer, 
TelesensKSCL Ukraine Ltd.
http://www.TelesensKSCL.com.ua


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>