[slf4j-dev] [Bug 106] Obtaining a logger before loggerFactory is assigned

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Thu Oct 16 17:41:44 CEST 2008


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


Ceki Gulcu <listid at qos.ch> changed:

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




--- Comment #3 from Ceki Gulcu <listid at qos.ch>  2008-10-16 17:41:44 ---
(In reply to comment #1)
> Hi,
> 
> i would like to add my two cents here: Instead of giving out a NOP logger
> during initialization which will not log anything i would suggest the
> following: 
> 
>   Creating a Bootstrap logger which is a kind of proxy object. 
>      * Until the logger factory is not initialized it would log to stderr
>      * When the initialization of the logger factory has happened than these
> loggers would be notified
>      * The Bootstrap logger now will ask the real loggerfactory for a logger
> with the same name and delegates all calls to it.
> 
> Regards,
> Zoltan
> 

Zoltan,

I agree with your suggestion. However, the goal at this stage is to get a bug
fix out the door as soon as possible. If people are uncomfortable with the
current fix, they are welcome to ask for an improvement. In the meantime, the
fix in revisions 1190 and 1192 are so much better than the prior situation.

For the changes see


http://svn.slf4j.org/viewvc/slf4j/trunk/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java?view=log


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



More information about the slf4j-dev mailing list