logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Moore <jim.mo...@veritas.com>
Subject thread name in LoggingEvent
Date Fri, 15 Jun 2001 00:31:41 GMT
As was just brought out on the Users list, the thread name is part of the
LoggingEvent, but the current implementation is:
  public String getThreadName() {
    if(threadName == null)
      threadName = (Thread.currentThread()).getName();
    return threadName;
so if it's not asked for that information until it's in an AsyncAppender (or
having been serialized to a server) then it will give the wrong name.

Any reason for threadName to not get set at LoggingEvent creation?

-Jim Moore

To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org

View raw message