[slf4j-dev] [Bug 71] JCL loggers are Serializable, jcl104-over-slf4j logger is not

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Wed Jul 30 13:53:48 CEST 2008


http://bugzilla.slf4j.org/show_bug.cgi?id=71


manfred.geiler at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #2 from manfred.geiler at gmail.com  2008-07-30 13:53 -------
Only marking the logger references as transient is not enough.
Deserialized instances would throw NPEs immediately. The transient logger
reference must also be created lazily like in JCL.

I fear the lack of that lazy-init concept is an overall design weakness of
SLF4J. All org.slf4j.Logger implementations (eg. Log4jLoggerAdapter) have these
two problems:
 - not Serializable
 - eager binding to the actual logging system instead of lazy creation

This makes it impossible to use non-static loggers in serializable classes at
all. Please reconsider the current architecture, it is a severe con against
JCL.


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the slf4j-dev mailing list