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@slf4j.org ReportedBy: [EMAIL PROTECTED]
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. _______________________________________________ dev mailing list dev@slf4j.org http://www.slf4j.org/mailman/listinfo/dev