public class io.dropwizard.servlets.tasks.LogConfigurationTask extends io.dropwizard.servlets.tasks.Task
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.servlets.tasks.LogConfigurationTask
super_class: io.dropwizard.servlets.tasks.Task
{
private final org.slf4j.ILoggerFactory loggerContext;
descriptor: Lorg/slf4j/ILoggerFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.slf4j.LoggerFactory.getILoggerFactory:()Lorg/slf4j/ILoggerFactory;
invokespecial io.dropwizard.servlets.tasks.LogConfigurationTask.<init>:(Lorg/slf4j/ILoggerFactory;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/servlets/tasks/LogConfigurationTask;
public void <init>(org.slf4j.ILoggerFactory);
descriptor: (Lorg/slf4j/ILoggerFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "log-level"
invokespecial io.dropwizard.servlets.tasks.Task.<init>:(Ljava/lang/String;)V
1: aload 0
aload 1
putfield io.dropwizard.servlets.tasks.LogConfigurationTask.loggerContext:Lorg/slf4j/ILoggerFactory;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/servlets/tasks/LogConfigurationTask;
0 3 1 loggerContext Lorg/slf4j/ILoggerFactory;
MethodParameters:
Name Flags
loggerContext
public void execute(com.google.common.collect.ImmutableMultimap<java.lang.String, java.lang.String>, java.io.PrintWriter);
descriptor: (Lcom/google/common/collect/ImmutableMultimap;Ljava/io/PrintWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual io.dropwizard.servlets.tasks.LogConfigurationTask.getLoggerNames:(Lcom/google/common/collect/ImmutableMultimap;)Ljava/util/List;
astore 3
start local 3 1: aload 0
aload 1
invokevirtual io.dropwizard.servlets.tasks.LogConfigurationTask.getLoggerLevel:(Lcom/google/common/collect/ImmutableMultimap;)Lch/qos/logback/classic/Level;
astore 4
start local 4 2: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 7
StackMap locals: io.dropwizard.servlets.tasks.LogConfigurationTask com.google.common.collect.ImmutableMultimap java.io.PrintWriter java.util.List ch.qos.logback.classic.Level top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 4: aload 0
getfield io.dropwizard.servlets.tasks.LogConfigurationTask.loggerContext:Lorg/slf4j/ILoggerFactory;
checkcast ch.qos.logback.classic.LoggerContext
aload 5
invokevirtual ch.qos.logback.classic.LoggerContext.getLogger:(Ljava/lang/String;)Lch/qos/logback/classic/Logger;
aload 4
invokevirtual ch.qos.logback.classic.Logger.setLevel:(Lch/qos/logback/classic/Level;)V
5: aload 2
ldc "Configured logging level for %s to %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
dup
iconst_1
aload 4
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
6: aload 2
invokevirtual java.io.PrintWriter.flush:()V
end local 5 7: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/dropwizard/servlets/tasks/LogConfigurationTask;
0 9 1 parameters Lcom/google/common/collect/ImmutableMultimap<Ljava/lang/String;Ljava/lang/String;>;
0 9 2 output Ljava/io/PrintWriter;
1 9 3 loggerNames Ljava/util/List<Ljava/lang/String;>;
2 9 4 loggerLevel Lch/qos/logback/classic/Level;
4 7 5 loggerName Ljava/lang/String;
Exceptions:
throws java.lang.Exception
Signature: (Lcom/google/common/collect/ImmutableMultimap<Ljava/lang/String;Ljava/lang/String;>;Ljava/io/PrintWriter;)V
MethodParameters:
Name Flags
parameters
output
private java.util.List<java.lang.String> getLoggerNames(com.google.common.collect.ImmutableMultimap<java.lang.String, java.lang.String>);
descriptor: (Lcom/google/common/collect/ImmutableMultimap;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "logger"
invokevirtual com.google.common.collect.ImmutableMultimap.get:(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableCollection;
invokevirtual com.google.common.collect.ImmutableCollection.asList:()Lcom/google/common/collect/ImmutableList;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/servlets/tasks/LogConfigurationTask;
0 1 1 parameters Lcom/google/common/collect/ImmutableMultimap<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Lcom/google/common/collect/ImmutableMultimap<Ljava/lang/String;Ljava/lang/String;>;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
parameters
private ch.qos.logback.classic.Level getLoggerLevel(com.google.common.collect.ImmutableMultimap<java.lang.String, java.lang.String>);
descriptor: (Lcom/google/common/collect/ImmutableMultimap;)Lch/qos/logback/classic/Level;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "level"
invokevirtual com.google.common.collect.ImmutableMultimap.get:(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableCollection;
invokevirtual com.google.common.collect.ImmutableCollection.asList:()Lcom/google/common/collect/ImmutableList;
astore 2
start local 2 1: aload 2
invokeinterface java.util.List.isEmpty:()Z
ifeq 2
aconst_null
goto 3
StackMap locals: java.util.List
StackMap stack:
2: aload 2
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
invokestatic ch.qos.logback.classic.Level.valueOf:(Ljava/lang/String;)Lch/qos/logback/classic/Level;
StackMap locals:
StackMap stack: ch.qos.logback.classic.Level
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/dropwizard/servlets/tasks/LogConfigurationTask;
0 4 1 parameters Lcom/google/common/collect/ImmutableMultimap<Ljava/lang/String;Ljava/lang/String;>;
1 4 2 loggerLevels Ljava/util/List<Ljava/lang/String;>;
Signature: (Lcom/google/common/collect/ImmutableMultimap<Ljava/lang/String;Ljava/lang/String;>;)Lch/qos/logback/classic/Level;
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
RuntimeVisibleTypeAnnotations:
METHOD_RETURN
javax.annotation.Nullable()
MethodParameters:
Name Flags
parameters
}
SourceFile: "LogConfigurationTask.java"