show_bug.cgi?id=35




------- Comment #4 from [EMAIL PROTECTED]  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.
_______________________________________________
dev mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/dev

Reply via email to