public class ch.qos.logback.classic.jul.LevelChangePropagator extends ch.qos.logback.core.spi.ContextAwareBase implements ch.qos.logback.classic.spi.LoggerContextListener, ch.qos.logback.core.spi.LifeCycle
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.classic.jul.LevelChangePropagator
super_class: ch.qos.logback.core.spi.ContextAwareBase
{
private java.util.Set<java.util.logging.Logger> julLoggerSet;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Ljava/util/logging/Logger;>;
boolean isStarted;
descriptor: Z
flags: (0x0000)
boolean resetJUL;
descriptor: Z
flags: (0x0000)
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial ch.qos.logback.core.spi.ContextAwareBase.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield ch.qos.logback.classic.jul.LevelChangePropagator.julLoggerSet:Ljava/util/Set;
2: aload 0
iconst_0
putfield ch.qos.logback.classic.jul.LevelChangePropagator.isStarted:Z
3: aload 0
iconst_0
putfield ch.qos.logback.classic.jul.LevelChangePropagator.resetJUL:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
public void setResetJUL(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield ch.qos.logback.classic.jul.LevelChangePropagator.resetJUL:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
0 2 1 resetJUL Z
MethodParameters:
Name Flags
resetJUL
public boolean isResetResistant();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
public void onStart(ch.qos.logback.classic.LoggerContext);
descriptor: (Lch/qos/logback/classic/LoggerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
0 1 1 context Lch/qos/logback/classic/LoggerContext;
MethodParameters:
Name Flags
context
public void onReset(ch.qos.logback.classic.LoggerContext);
descriptor: (Lch/qos/logback/classic/LoggerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
0 1 1 context Lch/qos/logback/classic/LoggerContext;
MethodParameters:
Name Flags
context
public void onStop(ch.qos.logback.classic.LoggerContext);
descriptor: (Lch/qos/logback/classic/LoggerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
0 1 1 context Lch/qos/logback/classic/LoggerContext;
MethodParameters:
Name Flags
context
public void onLevelChange(ch.qos.logback.classic.Logger, ch.qos.logback.classic.Level);
descriptor: (Lch/qos/logback/classic/Logger;Lch/qos/logback/classic/Level;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual ch.qos.logback.classic.jul.LevelChangePropagator.propagate:(Lch/qos/logback/classic/Logger;Lch/qos/logback/classic/Level;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
0 2 1 logger Lch/qos/logback/classic/Logger;
0 2 2 level Lch/qos/logback/classic/Level;
MethodParameters:
Name Flags
logger
level
private void propagate(ch.qos.logback.classic.Logger, ch.qos.logback.classic.Level);
descriptor: (Lch/qos/logback/classic/Logger;Lch/qos/logback/classic/Level;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new java.lang.StringBuilder
dup
ldc "Propagating "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " level on "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " onto the JUL framework"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual ch.qos.logback.classic.jul.LevelChangePropagator.addInfo:(Ljava/lang/String;)V
1: aload 1
invokestatic ch.qos.logback.classic.jul.JULHelper.asJULLogger:(Lch/qos/logback/classic/Logger;)Ljava/util/logging/Logger;
astore 3
start local 3 2: aload 0
getfield ch.qos.logback.classic.jul.LevelChangePropagator.julLoggerSet:Ljava/util/Set;
aload 3
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: aload 2
invokestatic ch.qos.logback.classic.jul.JULHelper.asJULLevel:(Lch/qos/logback/classic/Level;)Ljava/util/logging/Level;
astore 4
start local 4 4: aload 3
aload 4
invokevirtual java.util.logging.Logger.setLevel:(Ljava/util/logging/Level;)V
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
0 6 1 logger Lch/qos/logback/classic/Logger;
0 6 2 level Lch/qos/logback/classic/Level;
2 6 3 julLogger Ljava/util/logging/Logger;
4 6 4 julLevel Ljava/util/logging/Level;
MethodParameters:
Name Flags
logger
level
public void resetJULLevels();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: invokestatic java.util.logging.LogManager.getLogManager:()Ljava/util/logging/LogManager;
astore 1
start local 1 1: aload 1
invokevirtual java.util.logging.LogManager.getLoggerNames:()Ljava/util/Enumeration;
astore 2
start local 2 2: goto 8
3: StackMap locals: java.util.logging.LogManager java.util.Enumeration
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 4: aload 1
aload 3
invokevirtual java.util.logging.LogManager.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
astore 4
start local 4 5: aload 4
invokestatic ch.qos.logback.classic.jul.JULHelper.isRegularNonRootLogger:(Ljava/util/logging/Logger;)Z
ifeq 8
aload 4
invokevirtual java.util.logging.Logger.getLevel:()Ljava/util/logging/Level;
ifnull 8
6: aload 0
new java.lang.StringBuilder
dup
ldc "Setting level of jul logger ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] to null"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual ch.qos.logback.classic.jul.LevelChangePropagator.addInfo:(Ljava/lang/String;)V
7: aload 4
aconst_null
invokevirtual java.util.logging.Logger.setLevel:(Ljava/util/logging/Level;)V
end local 4 end local 3 8: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 3
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
1 10 1 lm Ljava/util/logging/LogManager;
2 10 2 e Ljava/util/Enumeration<Ljava/lang/String;>;
4 8 3 loggerName Ljava/lang/String;
5 8 4 julLogger Ljava/util/logging/Logger;
private void propagateExistingLoggerLevels();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.classic.jul.LevelChangePropagator.context:Lch/qos/logback/core/Context;
checkcast ch.qos.logback.classic.LoggerContext
astore 1
start local 1 1: aload 1
invokevirtual ch.qos.logback.classic.LoggerContext.getLoggerList:()Ljava/util/List;
astore 2
start local 2 2: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: ch.qos.logback.classic.jul.LevelChangePropagator ch.qos.logback.classic.LoggerContext java.util.List top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast ch.qos.logback.classic.Logger
astore 3
start local 3 4: aload 3
invokevirtual ch.qos.logback.classic.Logger.getLevel:()Lch/qos/logback/classic/Level;
ifnull 6
5: aload 0
aload 3
aload 3
invokevirtual ch.qos.logback.classic.Logger.getLevel:()Lch/qos/logback/classic/Level;
invokevirtual ch.qos.logback.classic.jul.LevelChangePropagator.propagate:(Lch/qos/logback/classic/Logger;Lch/qos/logback/classic/Level;)V
end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
1 8 1 loggerContext Lch/qos/logback/classic/LoggerContext;
2 8 2 loggerList Ljava/util/List<Lch/qos/logback/classic/Logger;>;
4 6 3 l Lch/qos/logback/classic/Logger;
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.classic.jul.LevelChangePropagator.resetJUL:Z
ifeq 2
1: aload 0
invokevirtual ch.qos.logback.classic.jul.LevelChangePropagator.resetJULLevels:()V
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual ch.qos.logback.classic.jul.LevelChangePropagator.propagateExistingLoggerLevels:()V
3: aload 0
iconst_1
putfield ch.qos.logback.classic.jul.LevelChangePropagator.isStarted:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield ch.qos.logback.classic.jul.LevelChangePropagator.isStarted:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
public boolean isStarted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.classic.jul.LevelChangePropagator.isStarted:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/classic/jul/LevelChangePropagator;
}
SourceFile: "LevelChangePropagator.java"