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
_______________________________________________
user mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/user

Reply via email to