Permalink
Browse files

Detect root logger for log4j

  • Loading branch information...
1 parent 05be53d commit 9e3a45e59d63438914c19a1484d70a5b5bce7b43 @dmlloyd committed Feb 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/jboss/logging/Log4jLoggerProvider.java
@@ -30,7 +30,7 @@
final class Log4jLoggerProvider implements LoggerProvider {
public Logger getLogger(final String name) {
- return new Log4jLogger(name);
+ return new Log4jLogger("".equals(name) ? "ROOT" : name);
}
public Object getMdc(String key) {

0 comments on commit 9e3a45e

Please sign in to comment.