https://issues.apache.org/bugzilla/show_bug.cgi?id=46129

           Summary: Thread name is not logged correctly when using async
                    appenders
           Product: Log4j
           Version: 1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Thread name is not logged correctly when using async appenders. The name of the
thread that runs the async appender is logged, not the name of the thread that
did the logging.

This is because the threadname in the LoggingEvent is never captured upon
creation. The constructor that takes the threadname is never used. By the time
the threadname is retrieved from the logginfg event it calls the
thread.currentThread().getName() which gets the name of the async appender
thread.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to