[logback-user] Something which should be made clearer in the logback doc: Should a layout be threadsafe?
jakartaman
jakartaman at m-plify.net
Tue Oct 25 02:29:25 CEST 2011
Hi,
Quick remark:
It is not clear from the logback docs whether a new layout should be
threadsafe. I strongly suspect that it should be (why would logback do
the possibly unnecessary locking for you?), but - should that not be
explicitly said?
E.g. coders may fall into the usual trap of having an instance-bound or
even static SimpleDateFormat member and not making the access to it
synchronized etc (aehm).
Best regards,
--- David
More information about the Logback-user
mailing list