Summary: | Give log4j threads reasonable names | ||
---|---|---|---|
Product: | Log4j - Now in Jira | Reporter: | Ulrich Voigt <ulrich.voigt> |
Component: | Other | Assignee: | log4j-dev <log4j-dev> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | aditsu |
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other |
Description
Ulrich Voigt
2006-12-12 01:29:52 UTC
I vote for this too. For example the PropertyWatchdog thread shows up as "Thread-5". This should be trivial to fix - just add something like setName("log4j-PropertyWatchdog") in the constructor. As of revision 636954, several Threads created by log4j are given a naming convention based on the creating object. The following classes were modified: org/apache/log4j/AsyncAppender.java org/apache/log4j/helpers/FileWatchdog.java org/apache/log4j/net/SimpleSocketServer.java org/apache/log4j/net/SocketHubAppender.java org/apache/log4j/varia/ExternallyRolledFileAppender.java |