Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Detect root logger for log4j

  • Loading branch information...
commit 9e3a45e59d63438914c19a1484d70a5b5bce7b43 1 parent 05be53d
@dmlloyd authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/java/org/jboss/logging/Log4jLoggerProvider.java
View
2  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) {
Please sign in to comment.
Something went wrong with that request. Please try again.