Logger instances are stored in static fields in SubEthaSMTP. This was the
standard practice (although not with SLF4J), because it is a bit faster and
requires less memory. On the other hand, it causes inconvenience when using
JMockit, see http://code.google.com/p/jmockit/issues/detail?id=103 . Static
loggers are also problematic if the library is shared by more web applications.
I believe in an IO related library like SubEthaSMTP the performance and memory
advantages are negligible. I use instance loggers in much finer grained
objects, without any noticeable effect. If you agree, I prepare a patch which
converts static to instance log variables.
Original issue reported on code.google.com by hontvari@flyordie.com on 25 Oct 2010 at 9:41
Original issue reported on code.google.com by
hontvari@flyordie.com
on 25 Oct 2010 at 9:41