public class io.dropwizard.logging.BootstrapLogging
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.logging.BootstrapLogging
super_class: java.lang.Object
{
private static boolean bootstrapped;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
RuntimeInvisibleAnnotations:
javax.annotation.concurrent.GuardedBy(value = "BOOTSTRAPPING_LOCK")
private static final java.util.concurrent.locks.Lock BOOTSTRAPPING_LOCK;
descriptor: Ljava/util/concurrent/locks/Lock;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: iconst_0
putstatic io.dropwizard.logging.BootstrapLogging.bootstrapped:Z
1: new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putstatic io.dropwizard.logging.BootstrapLogging.BOOTSTRAPPING_LOCK:Ljava/util/concurrent/locks/Lock;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/logging/BootstrapLogging;
public static void bootstrap();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic ch.qos.logback.classic.Level.WARN:Lch/qos/logback/classic/Level;
invokestatic io.dropwizard.logging.BootstrapLogging.bootstrap:(Lch/qos/logback/classic/Level;)V
1: return
LocalVariableTable:
Start End Slot Name Signature
public static void bootstrap(ch.qos.logback.classic.Level);
descriptor: (Lch/qos/logback/classic/Level;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic build()Lio/dropwizard/logging/layout/DiscoverableLayoutFactory;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Lch/qos/logback/classic/LoggerContext;Ljava/util/TimeZone;)Lch/qos/logback/core/LayoutBase;
io/dropwizard/logging/DropwizardLayout.<init>(Lch/qos/logback/classic/LoggerContext;Ljava/util/TimeZone;)V (8)
(Lch/qos/logback/classic/LoggerContext;Ljava/util/TimeZone;)Lch/qos/logback/core/LayoutBase;
invokestatic io.dropwizard.logging.BootstrapLogging.bootstrap:(Lch/qos/logback/classic/Level;Lio/dropwizard/logging/layout/DiscoverableLayoutFactory;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 level Lch/qos/logback/classic/Level;
MethodParameters:
Name Flags
level
public static void bootstrap(ch.qos.logback.classic.Level, io.dropwizard.logging.layout.DiscoverableLayoutFactory<ch.qos.logback.classic.spi.ILoggingEvent>);
descriptor: (Lch/qos/logback/classic/Level;Lio/dropwizard/logging/layout/DiscoverableLayoutFactory;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: invokestatic io.dropwizard.logging.LoggingUtil.hijackJDKLogging:()V
1: getstatic io.dropwizard.logging.BootstrapLogging.BOOTSTRAPPING_LOCK:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: getstatic io.dropwizard.logging.BootstrapLogging.bootstrapped:Z
ifeq 5
3: getstatic io.dropwizard.logging.BootstrapLogging.BOOTSTRAPPING_LOCK:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
4: return
5: StackMap locals:
StackMap stack:
invokestatic io.dropwizard.logging.LoggingUtil.getLoggerContext:()Lch/qos/logback/classic/LoggerContext;
ldc "ROOT"
invokevirtual ch.qos.logback.classic.LoggerContext.getLogger:(Ljava/lang/String;)Lch/qos/logback/classic/Logger;
astore 2
start local 2 6: aload 2
invokevirtual ch.qos.logback.classic.Logger.detachAndStopAllAppenders:()V
7: aload 1
aload 2
invokevirtual ch.qos.logback.classic.Logger.getLoggerContext:()Lch/qos/logback/classic/LoggerContext;
invokestatic java.util.TimeZone.getDefault:()Ljava/util/TimeZone;
invokeinterface io.dropwizard.logging.layout.DiscoverableLayoutFactory.build:(Lch/qos/logback/classic/LoggerContext;Ljava/util/TimeZone;)Lch/qos/logback/core/LayoutBase;
astore 3
start local 3 8: aload 3
invokeinterface ch.qos.logback.core.Layout.start:()V
9: new ch.qos.logback.classic.filter.ThresholdFilter
dup
invokespecial ch.qos.logback.classic.filter.ThresholdFilter.<init>:()V
astore 4
start local 4 10: aload 4
aload 0
invokevirtual ch.qos.logback.classic.Level.toString:()Ljava/lang/String;
invokevirtual ch.qos.logback.classic.filter.ThresholdFilter.setLevel:(Ljava/lang/String;)V
11: aload 4
invokevirtual ch.qos.logback.classic.filter.ThresholdFilter.start:()V
12: new ch.qos.logback.core.ConsoleAppender
dup
invokespecial ch.qos.logback.core.ConsoleAppender.<init>:()V
astore 5
start local 5 13: aload 5
aload 4
invokevirtual ch.qos.logback.core.ConsoleAppender.addFilter:(Lch/qos/logback/core/filter/Filter;)V
14: aload 5
aload 2
invokevirtual ch.qos.logback.classic.Logger.getLoggerContext:()Lch/qos/logback/classic/LoggerContext;
invokevirtual ch.qos.logback.core.ConsoleAppender.setContext:(Lch/qos/logback/core/Context;)V
15: new ch.qos.logback.core.encoder.LayoutWrappingEncoder
dup
invokespecial ch.qos.logback.core.encoder.LayoutWrappingEncoder.<init>:()V
astore 6
start local 6 16: aload 6
aload 3
invokevirtual ch.qos.logback.core.encoder.LayoutWrappingEncoder.setLayout:(Lch/qos/logback/core/Layout;)V
17: aload 5
aload 6
invokevirtual ch.qos.logback.core.ConsoleAppender.setEncoder:(Lch/qos/logback/core/encoder/Encoder;)V
18: aload 5
invokevirtual ch.qos.logback.core.ConsoleAppender.start:()V
19: aload 2
aload 5
invokevirtual ch.qos.logback.classic.Logger.addAppender:(Lch/qos/logback/core/Appender;)V
20: iconst_1
putstatic io.dropwizard.logging.BootstrapLogging.bootstrapped:Z
end local 6 end local 5 end local 4 end local 3 end local 2 21: goto 25
StackMap locals:
StackMap stack: java.lang.Throwable
22: astore 7
23: getstatic io.dropwizard.logging.BootstrapLogging.BOOTSTRAPPING_LOCK:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
24: aload 7
athrow
25: StackMap locals:
StackMap stack:
getstatic io.dropwizard.logging.BootstrapLogging.BOOTSTRAPPING_LOCK:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
26: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 level Lch/qos/logback/classic/Level;
0 27 1 layoutFactory Lio/dropwizard/logging/layout/DiscoverableLayoutFactory<Lch/qos/logback/classic/spi/ILoggingEvent;>;
6 21 2 root Lch/qos/logback/classic/Logger;
8 21 3 layout Lch/qos/logback/core/Layout<Lch/qos/logback/classic/spi/ILoggingEvent;>;
10 21 4 filter Lch/qos/logback/classic/filter/ThresholdFilter;
13 21 5 appender Lch/qos/logback/core/ConsoleAppender<Lch/qos/logback/classic/spi/ILoggingEvent;>;
16 21 6 layoutEncoder Lch/qos/logback/core/encoder/LayoutWrappingEncoder<Lch/qos/logback/classic/spi/ILoggingEvent;>;
Exception table:
from to target type
2 3 22 any
5 22 22 any
Signature: (Lch/qos/logback/classic/Level;Lio/dropwizard/logging/layout/DiscoverableLayoutFactory<Lch/qos/logback/classic/spi/ILoggingEvent;>;)V
MethodParameters:
Name Flags
level
layoutFactory
}
SourceFile: "BootstrapLogging.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles