[slf4j-user] MessageFormatter: brackets in brackets
Ceki Gulcu
listid at qos.ch
Wed Oct 1 15:19:12 CEST 2008
Hello Jean-Luc,
Thank you for your message. Comments inline.
Jean-Luc Geering wrote:
> Hi there,
>
> On [1] I read that
>
> " In case your message contains the '{' or the '}' character, you do not
> have to do anything special unless the '}' character immediately follows
> '}' "
>
> shouldn't it be " ... unless the '}' character immediately follows '{' " ?
Yes, absolutely. Fixed in revision 1153.
> and related to that, if I want to produce "hello{world}", shouldn't I be
> able to write log.debug("hello{{}}, "world"); ?
Yes. You can write
log.debug("hello{{}}, "world");
which will produce the message "hello {world}" assumming the logger is enabled
for the debug level.
Are you observing a different behavior?
--
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