[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slf4j-user
Subject:    Re: [slf4j-user] Localizing log levels
From:       Dario Campagna <campagna () esteco ! com>
Date:       2012-05-29 14:44:22
Message-ID: CAEuOgVogEnPNNzigmn5-Br4WfQ6kfznHNJRxEGhcAp-my4QNxQ () mail ! gmail ! com
[Download RAW message or body]

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
_______________________________________________
slf4j-user mailing list
slf4j-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/slf4j-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic