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

           Summary: sl4j not threadsafe
           Product: SLF4J
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Implementations
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I've taken a peek at the basic logging factory implementations.

They maintain a map of acquired loggers, as a cache.

This is good, but also a problem: the methods are not synchronized.

I can say for a fact that my application of SL4J will operate in a multithreaded
environment.

Fortunately, I can localize access to the logging factory and do my own
synchronization there.

It would be trivial for SL4J implementations to be threadsafe.

You could add an ILoggerFactory decorator *around* the existing ILoggerFactory
implementations that could provide this synchronization.

-- 
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.
_______________________________________________
dev mailing list
[email protected]
http://slf4j.org/mailman/listinfo/dev

Reply via email to