public class ch.qos.logback.classic.joran.action.RootLoggerAction extends ch.qos.logback.core.joran.action.Action
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.classic.joran.action.RootLoggerAction
super_class: ch.qos.logback.core.joran.action.Action
{
ch.qos.logback.classic.Logger root;
descriptor: Lch/qos/logback/classic/Logger;
flags: (0x0000)
boolean inError;
descriptor: Z
flags: (0x0000)
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial ch.qos.logback.core.joran.action.Action.<init>:()V
1: aload 0
iconst_0
putfield ch.qos.logback.classic.joran.action.RootLoggerAction.inError:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/classic/joran/action/RootLoggerAction;
public void begin(ch.qos.logback.core.joran.spi.InterpretationContext, java.lang.String, org.xml.sax.Attributes);
descriptor: (Lch/qos/logback/core/joran/spi/InterpretationContext;Ljava/lang/String;Lorg/xml/sax/Attributes;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iconst_0
putfield ch.qos.logback.classic.joran.action.RootLoggerAction.inError:Z
1: aload 0
getfield ch.qos.logback.classic.joran.action.RootLoggerAction.context:Lch/qos/logback/core/Context;
checkcast ch.qos.logback.classic.LoggerContext
astore 4
start local 4 2: aload 0
aload 4
ldc "ROOT"
invokevirtual ch.qos.logback.classic.LoggerContext.getLogger:(Ljava/lang/String;)Lch/qos/logback/classic/Logger;
putfield ch.qos.logback.classic.joran.action.RootLoggerAction.root:Lch/qos/logback/classic/Logger;
3: aload 1
aload 3
ldc "level"
invokeinterface org.xml.sax.Attributes.getValue:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual ch.qos.logback.core.joran.spi.InterpretationContext.subst:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 4: aload 5
invokestatic ch.qos.logback.core.util.OptionHelper.isEmpty:(Ljava/lang/String;)Z
ifne 8
5: aload 5
invokestatic ch.qos.logback.classic.Level.toLevel:(Ljava/lang/String;)Lch/qos/logback/classic/Level;
astore 6
start local 6 6: aload 0
new java.lang.StringBuilder
dup
ldc "Setting level of ROOT logger to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual ch.qos.logback.classic.joran.action.RootLoggerAction.addInfo:(Ljava/lang/String;)V
7: aload 0
getfield ch.qos.logback.classic.joran.action.RootLoggerAction.root:Lch/qos/logback/classic/Logger;
aload 6
invokevirtual ch.qos.logback.classic.Logger.setLevel:(Lch/qos/logback/classic/Level;)V
end local 6 8: StackMap locals: ch.qos.logback.classic.LoggerContext java.lang.String
StackMap stack:
aload 1
aload 0
getfield ch.qos.logback.classic.joran.action.RootLoggerAction.root:Lch/qos/logback/classic/Logger;
invokevirtual ch.qos.logback.core.joran.spi.InterpretationContext.pushObject:(Ljava/lang/Object;)V
9: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lch/qos/logback/classic/joran/action/RootLoggerAction;
0 10 1 ec Lch/qos/logback/core/joran/spi/InterpretationContext;
0 10 2 name Ljava/lang/String;
0 10 3 attributes Lorg/xml/sax/Attributes;
2 10 4 loggerContext Lch/qos/logback/classic/LoggerContext;
4 10 5 levelStr Ljava/lang/String;
6 8 6 level Lch/qos/logback/classic/Level;
MethodParameters:
Name Flags
ec
name
attributes
public void end(ch.qos.logback.core.joran.spi.InterpretationContext, java.lang.String);
descriptor: (Lch/qos/logback/core/joran/spi/InterpretationContext;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield ch.qos.logback.classic.joran.action.RootLoggerAction.inError:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual ch.qos.logback.core.joran.spi.InterpretationContext.peekObject:()Ljava/lang/Object;
astore 3
start local 3 3: aload 3
aload 0
getfield ch.qos.logback.classic.joran.action.RootLoggerAction.root:Lch/qos/logback/classic/Logger;
if_acmpeq 7
4: aload 0
ldc "The object on the top the of the stack is not the root logger"
invokevirtual ch.qos.logback.classic.joran.action.RootLoggerAction.addWarn:(Ljava/lang/String;)V
5: aload 0
new java.lang.StringBuilder
dup
ldc "It is: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual ch.qos.logback.classic.joran.action.RootLoggerAction.addWarn:(Ljava/lang/String;)V
6: goto 8
7: StackMap locals: java.lang.Object
StackMap stack:
aload 1
invokevirtual ch.qos.logback.core.joran.spi.InterpretationContext.popObject:()Ljava/lang/Object;
pop
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lch/qos/logback/classic/joran/action/RootLoggerAction;
0 9 1 ec Lch/qos/logback/core/joran/spi/InterpretationContext;
0 9 2 name Ljava/lang/String;
3 9 3 o Ljava/lang/Object;
MethodParameters:
Name Flags
ec
name
public void finish(ch.qos.logback.core.joran.spi.InterpretationContext);
descriptor: (Lch/qos/logback/core/joran/spi/InterpretationContext;)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/joran/action/RootLoggerAction;
0 1 1 ec Lch/qos/logback/core/joran/spi/InterpretationContext;
MethodParameters:
Name Flags
ec
}
SourceFile: "RootLoggerAction.java"