public class ch.qos.logback.classic.joran.action.ConsolePluginAction 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.ConsolePluginAction
super_class: ch.qos.logback.core.joran.action.Action
{
private static final java.lang.String PORT_ATTR;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "port"
private static final java.lang.Integer DEFAULT_PORT;
descriptor: Ljava/lang/Integer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: sipush 4321
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic ch.qos.logback.classic.joran.action.ConsolePluginAction.DEFAULT_PORT:Ljava/lang/Integer;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial ch.qos.logback.core.joran.action.Action.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/classic/joran/action/ConsolePluginAction;
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=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ldc "port"
invokeinterface org.xml.sax.Attributes.getValue:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: aload 4
ifnonnull 5
3: getstatic ch.qos.logback.classic.joran.action.ConsolePluginAction.DEFAULT_PORT:Ljava/lang/Integer;
astore 5
4: goto 9
5: StackMap locals: java.lang.String java.lang.Integer
StackMap stack:
aload 4
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;)Ljava/lang/Integer;
astore 5
6: goto 9
StackMap locals:
StackMap stack: java.lang.NumberFormatException
7: pop
8: aload 0
new java.lang.StringBuilder
dup
ldc "Port "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " in ConsolePlugin config is not a correct number"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual ch.qos.logback.classic.joran.action.ConsolePluginAction.addError:(Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual ch.qos.logback.core.joran.spi.InterpretationContext.getContext:()Lch/qos/logback/core/Context;
checkcast ch.qos.logback.classic.LoggerContext
astore 6
start local 6 10: new ch.qos.logback.classic.net.SocketAppender
dup
invokespecial ch.qos.logback.classic.net.SocketAppender.<init>:()V
astore 7
start local 7 11: aload 7
aload 6
invokevirtual ch.qos.logback.classic.net.SocketAppender.setContext:(Lch/qos/logback/core/Context;)V
12: aload 7
iconst_1
invokevirtual ch.qos.logback.classic.net.SocketAppender.setIncludeCallerData:(Z)V
13: aload 7
ldc "localhost"
invokevirtual ch.qos.logback.classic.net.SocketAppender.setRemoteHost:(Ljava/lang/String;)V
14: aload 7
aload 5
invokevirtual java.lang.Integer.intValue:()I
invokevirtual ch.qos.logback.classic.net.SocketAppender.setPort:(I)V
15: aload 7
invokevirtual ch.qos.logback.classic.net.SocketAppender.start:()V
16: aload 6
ldc "ROOT"
invokevirtual ch.qos.logback.classic.LoggerContext.getLogger:(Ljava/lang/String;)Lch/qos/logback/classic/Logger;
astore 8
start local 8 17: aload 8
aload 7
invokevirtual ch.qos.logback.classic.Logger.addAppender:(Lch/qos/logback/core/Appender;)V
18: aload 0
new java.lang.StringBuilder
dup
ldc "Sending LoggingEvents to the plugin using port "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
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.ConsolePluginAction.addInfo:(Ljava/lang/String;)V
19: return
end local 8 end local 7 end local 6 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 20 0 this Lch/qos/logback/classic/joran/action/ConsolePluginAction;
0 20 1 ec Lch/qos/logback/core/joran/spi/InterpretationContext;
0 20 2 name Ljava/lang/String;
0 20 3 attributes Lorg/xml/sax/Attributes;
1 20 4 portStr Ljava/lang/String;
2 20 5 port Ljava/lang/Integer;
10 20 6 lc Lch/qos/logback/classic/LoggerContext;
11 20 7 appender Lch/qos/logback/classic/net/SocketAppender;
17 20 8 root Lch/qos/logback/classic/Logger;
Exception table:
from to target type
5 6 7 Class java.lang.NumberFormatException
Exceptions:
throws ch.qos.logback.core.joran.spi.ActionException
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=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/classic/joran/action/ConsolePluginAction;
0 1 1 ec Lch/qos/logback/core/joran/spi/InterpretationContext;
0 1 2 name Ljava/lang/String;
Exceptions:
throws ch.qos.logback.core.joran.spi.ActionException
MethodParameters:
Name Flags
ec
name
}
SourceFile: "ConsolePluginAction.java"