[slf4j-user] Release of SLF4J version 1.5.9-RC0
Ceki Gulcu
ceki at qos.ch
Sat Sep 5 13:26:02 CEST 2009
ekkehard wrote:
> CAL10N sounds great...
>
> I can use it together with parameterized messages like 'normal' logging
> with SLF4J ?
Yes, you can,
> locLogger.info(MY_ENUM_KEY, getName(), getXYZ())
> where the value of MY_ENUM_KEY is
> "This is a log message from {} using {} and so on"
For translated messages, the JDK's MessageFormat convention is used. So, the
value of the key should be:
"This is a log message from {0} using {1} and so on"
> is performance same as using 'normal' SLF4J parameterized messages if
> depending from level nothging has to be logged ?
Give or take a few nano-seconds, yes.
--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
More information about the slf4j-user
mailing list