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

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Thu Jan 4 04:25:49 CET 2007


show_bug.cgi?id=35

           Summary: Provide Root-Accessor
           Product: SLF4J
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Core API
        AssignedTo: dev at slf4j.org
        ReportedBy: sdavids at gmx.de


There should be a binding-agnostic way of retrieving the root logger.

@@ Notes @@

@ LOGBack @

" The root logger resides at the top of the logger hierarchy. It is exceptional
in that it is part of every hierarchy at its inception. Like every logger, it
can be retrieved by its name, as follows: Logger rootLogger =
LoggerFactory.getLogger(LoggerContext.ROOT_NAME);"
http://logback.qos.ch/shortIntro.html
http://logback.qos.ch/apidocs/ch/qos/logback/classic/LoggerContext.html#ROOT_NAME

@ java.util.logging @

"The root Logger (named "") has no parent."
http://java.sun.com/javase/6/docs/technotes/guides/logging/overview.html#1.3

@ Log4J @

"The Logger.getName() method for the root logger always returns stirng value:
"root". However, calling Logger.getLogger("root") does not retrieve the root
logger but a logger just under root named "root"."
http://logging.apache.org/log4j/docs/api/org/apache/log4j/Logger.html#getRootLogger()

@ Simple Log @

"Note that, while the levels for loggers in Simple Log are calculated using a
hierarchical namespace, there is not actually any logger hierarchy maintained
within the code."
https://simple-log.dev.java.net/nonav/userGuide/log4jComparison.html

@ x4juli @

API-compatible w/ java.util.logging - so root Logger is named "".


-- 
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