diff --git a/core/src/main/java/org/jboss/logmanager/Logger.java b/core/src/main/java/org/jboss/logmanager/Logger.java index 8790b7ae..17a1bf2d 100644 --- a/core/src/main/java/org/jboss/logmanager/Logger.java +++ b/core/src/main/java/org/jboss/logmanager/Logger.java @@ -89,8 +89,8 @@ public static Logger getLogger(final String name, final String bundleName) { Logger(final LoggerNode loggerNode, final String name) { // Don't set up the bundle in the parent... super(name, null); - // We maintain our own level - super.setLevel(Level.ALL); + // We have to propagate our level to an internal data structure in the superclass + super.setLevel(loggerNode.getLevel()); this.loggerNode = loggerNode; } @@ -121,6 +121,8 @@ public Filter getFilter() { * log level reflects an older effective level than the actual level). */ public void setLevel(Level newLevel) throws SecurityException { + // We have to propagate our level to an internal data structure in the superclass + super.setLevel(newLevel); LogContext.checkAccess(); loggerNode.setLevel(newLevel); }