[logback-user] Something which should be made clearer in the logback doc: Should a layout be threadsafe?
jakartaman at m-plify.net
Tue Oct 25 02:29:25 CEST 2011
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
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).
More information about the Logback-user