public class com.codahale.metrics.log4j2.InstrumentedAppender extends org.apache.logging.log4j.core.appender.AbstractAppender
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.codahale.metrics.log4j2.InstrumentedAppender
super_class: org.apache.logging.log4j.core.appender.AbstractAppender
{
private final transient com.codahale.metrics.MetricRegistry registry;
descriptor: Lcom/codahale/metrics/MetricRegistry;
flags: (0x0092) ACC_PRIVATE, ACC_FINAL, ACC_TRANSIENT
private transient com.codahale.metrics.Meter all;
descriptor: Lcom/codahale/metrics/Meter;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient com.codahale.metrics.Meter trace;
descriptor: Lcom/codahale/metrics/Meter;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient com.codahale.metrics.Meter debug;
descriptor: Lcom/codahale/metrics/Meter;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient com.codahale.metrics.Meter info;
descriptor: Lcom/codahale/metrics/Meter;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient com.codahale.metrics.Meter warn;
descriptor: Lcom/codahale/metrics/Meter;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient com.codahale.metrics.Meter error;
descriptor: Lcom/codahale/metrics/Meter;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient com.codahale.metrics.Meter fatal;
descriptor: Lcom/codahale/metrics/Meter;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private static volatile int[] $SWITCH_TABLE$org$apache$logging$log4j$spi$StandardLevel;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>(java.lang.String, org.apache.logging.log4j.core.Filter, org.apache.logging.log4j.core.Layout<? extends java.io.Serializable>, );
descriptor: (Ljava/lang/String;Lorg/apache/logging/log4j/core/Filter;Lorg/apache/logging/log4j/core/Layout;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
invokestatic com.codahale.metrics.SharedMetricRegistries.getOrCreate:(Ljava/lang/String;)Lcom/codahale/metrics/MetricRegistry;
aload 2
aload 3
iload 4
invokespecial com.codahale.metrics.log4j2.InstrumentedAppender.<init>:(Lcom/codahale/metrics/MetricRegistry;Lorg/apache/logging/log4j/core/Filter;Lorg/apache/logging/log4j/core/Layout;Z)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/log4j2/InstrumentedAppender;
0 2 1 registryName Ljava/lang/String;
0 2 2 filter Lorg/apache/logging/log4j/core/Filter;
0 2 3 layout Lorg/apache/logging/log4j/core/Layout<+Ljava/io/Serializable;>;
0 2 4 ignoreExceptions Z
Signature: (Ljava/lang/String;Lorg/apache/logging/log4j/core/Filter;Lorg/apache/logging/log4j/core/Layout<+Ljava/io/Serializable;>;Z)V
MethodParameters:
Name Flags
registryName
filter
layout
ignoreExceptions
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic com.codahale.metrics.SharedMetricRegistries.getOrCreate:(Ljava/lang/String;)Lcom/codahale/metrics/MetricRegistry;
invokespecial com.codahale.metrics.log4j2.InstrumentedAppender.<init>:(Lcom/codahale/metrics/MetricRegistry;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/log4j2/InstrumentedAppender;
0 2 1 registryName Ljava/lang/String;
MethodParameters:
Name Flags
registryName
public void <init>(com.codahale.metrics.MetricRegistry);
descriptor: (Lcom/codahale/metrics/MetricRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
aconst_null
iconst_1
invokespecial com.codahale.metrics.log4j2.InstrumentedAppender.<init>:(Lcom/codahale/metrics/MetricRegistry;Lorg/apache/logging/log4j/core/Filter;Lorg/apache/logging/log4j/core/Layout;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/log4j2/InstrumentedAppender;
0 2 1 registry Lcom/codahale/metrics/MetricRegistry;
MethodParameters:
Name Flags
registry
public void <init>(com.codahale.metrics.MetricRegistry, org.apache.logging.log4j.core.Filter, org.apache.logging.log4j.core.Layout<? extends java.io.Serializable>, );
descriptor: (Lcom/codahale/metrics/MetricRegistry;Lorg/apache/logging/log4j/core/Filter;Lorg/apache/logging/log4j/core/Layout;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
ldc Lorg/apache/logging/log4j/core/Appender;
iconst_0
anewarray java.lang.String
invokestatic com.codahale.metrics.MetricRegistry.name:(Ljava/lang/Class;[Ljava/lang/String;)Ljava/lang/String;
aload 2
aload 3
iload 4
invokespecial org.apache.logging.log4j.core.appender.AbstractAppender.<init>:(Ljava/lang/String;Lorg/apache/logging/log4j/core/Filter;Lorg/apache/logging/log4j/core/Layout;Z)V
1: aload 0
aload 1
putfield com.codahale.metrics.log4j2.InstrumentedAppender.registry:Lcom/codahale/metrics/MetricRegistry;
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/codahale/metrics/log4j2/InstrumentedAppender;
0 3 1 registry Lcom/codahale/metrics/MetricRegistry;
0 3 2 filter Lorg/apache/logging/log4j/core/Filter;
0 3 3 layout Lorg/apache/logging/log4j/core/Layout<+Ljava/io/Serializable;>;
0 3 4 ignoreExceptions Z
Signature: (Lcom/codahale/metrics/MetricRegistry;Lorg/apache/logging/log4j/core/Filter;Lorg/apache/logging/log4j/core/Layout<+Ljava/io/Serializable;>;Z)V
MethodParameters:
Name Flags
registry
filter
layout
ignoreExceptions
public void <init>(java.lang.String, com.codahale.metrics.MetricRegistry);
descriptor: (Ljava/lang/String;Lcom/codahale/metrics/MetricRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aconst_null
aconst_null
iconst_1
invokespecial org.apache.logging.log4j.core.appender.AbstractAppender.<init>:(Ljava/lang/String;Lorg/apache/logging/log4j/core/Filter;Lorg/apache/logging/log4j/core/Layout;Z)V
1: aload 0
aload 2
putfield com.codahale.metrics.log4j2.InstrumentedAppender.registry:Lcom/codahale/metrics/MetricRegistry;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/codahale/metrics/log4j2/InstrumentedAppender;
0 3 1 appenderName Ljava/lang/String;
0 3 2 registry Lcom/codahale/metrics/MetricRegistry;
MethodParameters:
Name Flags
appenderName
registry
public static com.codahale.metrics.log4j2.InstrumentedAppender createAppender(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lcom/codahale/metrics/log4j2/InstrumentedAppender;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.codahale.metrics.log4j2.InstrumentedAppender
dup
aload 0
aload 1
invokestatic com.codahale.metrics.SharedMetricRegistries.getOrCreate:(Ljava/lang/String;)Lcom/codahale/metrics/MetricRegistry;
invokespecial com.codahale.metrics.log4j2.InstrumentedAppender.<init>:(Ljava/lang/String;Lcom/codahale/metrics/MetricRegistry;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
0 1 1 registry Ljava/lang/String;
RuntimeVisibleAnnotations:
org.apache.logging.log4j.core.config.plugins.PluginFactory()
RuntimeVisibleParameterAnnotations:
0:
org.apache.logging.log4j.core.config.plugins.PluginAttribute(value = "name")
1:
org.apache.logging.log4j.core.config.plugins.PluginAttribute(value = "registryName", defaultString = "log4j2Metrics")
MethodParameters:
Name Flags
name
registry
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.registry:Lcom/codahale/metrics/MetricRegistry;
aload 0
invokevirtual com.codahale.metrics.log4j2.InstrumentedAppender.getName:()Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "all"
aastore
invokestatic com.codahale.metrics.MetricRegistry.name:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.codahale.metrics.MetricRegistry.meter:(Ljava/lang/String;)Lcom/codahale/metrics/Meter;
putfield com.codahale.metrics.log4j2.InstrumentedAppender.all:Lcom/codahale/metrics/Meter;
1: aload 0
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.registry:Lcom/codahale/metrics/MetricRegistry;
aload 0
invokevirtual com.codahale.metrics.log4j2.InstrumentedAppender.getName:()Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "trace"
aastore
invokestatic com.codahale.metrics.MetricRegistry.name:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.codahale.metrics.MetricRegistry.meter:(Ljava/lang/String;)Lcom/codahale/metrics/Meter;
putfield com.codahale.metrics.log4j2.InstrumentedAppender.trace:Lcom/codahale/metrics/Meter;
2: aload 0
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.registry:Lcom/codahale/metrics/MetricRegistry;
aload 0
invokevirtual com.codahale.metrics.log4j2.InstrumentedAppender.getName:()Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "debug"
aastore
invokestatic com.codahale.metrics.MetricRegistry.name:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.codahale.metrics.MetricRegistry.meter:(Ljava/lang/String;)Lcom/codahale/metrics/Meter;
putfield com.codahale.metrics.log4j2.InstrumentedAppender.debug:Lcom/codahale/metrics/Meter;
3: aload 0
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.registry:Lcom/codahale/metrics/MetricRegistry;
aload 0
invokevirtual com.codahale.metrics.log4j2.InstrumentedAppender.getName:()Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "info"
aastore
invokestatic com.codahale.metrics.MetricRegistry.name:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.codahale.metrics.MetricRegistry.meter:(Ljava/lang/String;)Lcom/codahale/metrics/Meter;
putfield com.codahale.metrics.log4j2.InstrumentedAppender.info:Lcom/codahale/metrics/Meter;
4: aload 0
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.registry:Lcom/codahale/metrics/MetricRegistry;
aload 0
invokevirtual com.codahale.metrics.log4j2.InstrumentedAppender.getName:()Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "warn"
aastore
invokestatic com.codahale.metrics.MetricRegistry.name:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.codahale.metrics.MetricRegistry.meter:(Ljava/lang/String;)Lcom/codahale/metrics/Meter;
putfield com.codahale.metrics.log4j2.InstrumentedAppender.warn:Lcom/codahale/metrics/Meter;
5: aload 0
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.registry:Lcom/codahale/metrics/MetricRegistry;
aload 0
invokevirtual com.codahale.metrics.log4j2.InstrumentedAppender.getName:()Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "error"
aastore
invokestatic com.codahale.metrics.MetricRegistry.name:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.codahale.metrics.MetricRegistry.meter:(Ljava/lang/String;)Lcom/codahale/metrics/Meter;
putfield com.codahale.metrics.log4j2.InstrumentedAppender.error:Lcom/codahale/metrics/Meter;
6: aload 0
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.registry:Lcom/codahale/metrics/MetricRegistry;
aload 0
invokevirtual com.codahale.metrics.log4j2.InstrumentedAppender.getName:()Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "fatal"
aastore
invokestatic com.codahale.metrics.MetricRegistry.name:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.codahale.metrics.MetricRegistry.meter:(Ljava/lang/String;)Lcom/codahale/metrics/Meter;
putfield com.codahale.metrics.log4j2.InstrumentedAppender.fatal:Lcom/codahale/metrics/Meter;
7: aload 0
invokespecial org.apache.logging.log4j.core.appender.AbstractAppender.start:()V
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/codahale/metrics/log4j2/InstrumentedAppender;
public void append(org.apache.logging.log4j.core.LogEvent);
descriptor: (Lorg/apache/logging/log4j/core/LogEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.all:Lcom/codahale/metrics/Meter;
invokevirtual com.codahale.metrics.Meter.mark:()V
1: invokestatic com.codahale.metrics.log4j2.InstrumentedAppender.$SWITCH_TABLE$org$apache$logging$log4j$spi$StandardLevel:()[I
aload 1
invokeinterface org.apache.logging.log4j.core.LogEvent.getLevel:()Lorg/apache/logging/log4j/Level;
invokevirtual org.apache.logging.log4j.Level.getStandardLevel:()Lorg/apache/logging/log4j/spi/StandardLevel;
invokevirtual org.apache.logging.log4j.spi.StandardLevel.ordinal:()I
iaload
tableswitch { // 2 - 7
2: 12
3: 10
4: 8
5: 6
6: 4
7: 2
default: 14
}
2: StackMap locals:
StackMap stack:
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.trace:Lcom/codahale/metrics/Meter;
invokevirtual com.codahale.metrics.Meter.mark:()V
3: goto 14
4: StackMap locals:
StackMap stack:
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.debug:Lcom/codahale/metrics/Meter;
invokevirtual com.codahale.metrics.Meter.mark:()V
5: goto 14
6: StackMap locals:
StackMap stack:
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.info:Lcom/codahale/metrics/Meter;
invokevirtual com.codahale.metrics.Meter.mark:()V
7: goto 14
8: StackMap locals:
StackMap stack:
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.warn:Lcom/codahale/metrics/Meter;
invokevirtual com.codahale.metrics.Meter.mark:()V
9: goto 14
10: StackMap locals:
StackMap stack:
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.error:Lcom/codahale/metrics/Meter;
invokevirtual com.codahale.metrics.Meter.mark:()V
11: goto 14
12: StackMap locals:
StackMap stack:
aload 0
getfield com.codahale.metrics.log4j2.InstrumentedAppender.fatal:Lcom/codahale/metrics/Meter;
invokevirtual com.codahale.metrics.Meter.mark:()V
13: goto 14
14: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/codahale/metrics/log4j2/InstrumentedAppender;
0 15 1 event Lorg/apache/logging/log4j/core/LogEvent;
MethodParameters:
Name Flags
event
static int[] $SWITCH_TABLE$org$apache$logging$log4j$spi$StandardLevel();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic com.codahale.metrics.log4j2.InstrumentedAppender.$SWITCH_TABLE$org$apache$logging$log4j$spi$StandardLevel:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.logging.log4j.spi.StandardLevel.values:()[Lorg/apache/logging/log4j/spi/StandardLevel;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.logging.log4j.spi.StandardLevel.ALL:Lorg/apache/logging/log4j/spi/StandardLevel;
invokevirtual org.apache.logging.log4j.spi.StandardLevel.ordinal:()I
bipush 8
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.apache.logging.log4j.spi.StandardLevel.DEBUG:Lorg/apache/logging/log4j/spi/StandardLevel;
invokevirtual org.apache.logging.log4j.spi.StandardLevel.ordinal:()I
bipush 6
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.logging.log4j.spi.StandardLevel.ERROR:Lorg/apache/logging/log4j/spi/StandardLevel;
invokevirtual org.apache.logging.log4j.spi.StandardLevel.ordinal:()I
iconst_3
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.apache.logging.log4j.spi.StandardLevel.FATAL:Lorg/apache/logging/log4j/spi/StandardLevel;
invokevirtual org.apache.logging.log4j.spi.StandardLevel.ordinal:()I
iconst_2
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.apache.logging.log4j.spi.StandardLevel.INFO:Lorg/apache/logging/log4j/spi/StandardLevel;
invokevirtual org.apache.logging.log4j.spi.StandardLevel.ordinal:()I
iconst_5
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic org.apache.logging.log4j.spi.StandardLevel.OFF:Lorg/apache/logging/log4j/spi/StandardLevel;
invokevirtual org.apache.logging.log4j.spi.StandardLevel.ordinal:()I
iconst_1
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic org.apache.logging.log4j.spi.StandardLevel.TRACE:Lorg/apache/logging/log4j/spi/StandardLevel;
invokevirtual org.apache.logging.log4j.spi.StandardLevel.ordinal:()I
bipush 7
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic org.apache.logging.log4j.spi.StandardLevel.WARN:Lorg/apache/logging/log4j/spi/StandardLevel;
invokevirtual org.apache.logging.log4j.spi.StandardLevel.ordinal:()I
iconst_4
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
dup
putstatic com.codahale.metrics.log4j2.InstrumentedAppender.$SWITCH_TABLE$org$apache$logging$log4j$spi$StandardLevel:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
}
SourceFile: "InstrumentedAppender.java"
RuntimeVisibleAnnotations:
org.apache.logging.log4j.core.config.plugins.Plugin(name = "MetricsAppender", category = "Core", elementType = "appender")