[slf4j-user] Localizing log levels
Dario Campagna
campagna at esteco.com
Tue May 29 16:44:22 CEST 2012
Hi Ceki,
> No. SLF4J does not support localization of level names. In fact, it does
> not define level on it own. (There is no Level class in SLF4J.) The
> underlying logging system, e.g. log4j, logback, would need perform the
> localization.
Ok.
> If you are using logback, that would be fairly trivial to do.
A first possible solution that I devised consists in modifying the
Level class of logback classic and using CAL10N to localize level
names. Is this a correct/good way for dealing with level name
localization?
Cheers,
Dario
More information about the slf4j-user
mailing list