[slf4j-dev] [Bug 35] Provide Root-Accessor

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Jan 30 20:19:38 CET 2007


show_bug.cgi?id=35





------- Comment #4 from listid at qos.ch  2007-01-30 20:19 -------
Not quite. In log4j, the root logger is named "root", i.e.
Logger.getRootLogger().getName() returns the value "root". However,
the root logger cannot be retrieved by Logger.getLogger("root"). The
root logger can only be obtained by calling Logger.getRootLogger().

In JUL, Logger.getLogger("") returns the root logger, whereas in
logback, the name is "ROOT". 

Objectively, I think that whatever the name chosen it will be
unnatural for at at least one logging system. Subjectively, I'd prefer
that name to be "ROOT" or "root" (case insensitive). Doing so would be
both logback and log4j friendly.

Thus, I propose that LoggerFactory implementations retrieve the root
logger when called with the name "root" (case insensitive). Would that
work for you?


-- 
Configure bugmail: userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the slf4j-dev mailing list