logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Epik, Sergiy" <S.E...@telesenskscl.com.ua>
Subject i18n
Date Fri, 02 Nov 2001 15:03:01 GMT

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


Best regards, 
Sergey Epik

TelesensKSCL Ukraine Ltd.

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

View raw message