public class ch.qos.logback.core.util.StatusPrinter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.core.util.StatusPrinter
super_class: java.lang.Object
{
private static java.io.PrintStream ps;
descriptor: Ljava/io/PrintStream;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static ch.qos.logback.core.util.CachingDateFormatter cachingDateFormat;
descriptor: Lch/qos/logback/core/util/CachingDateFormatter;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: getstatic java.lang.System.out:Ljava/io/PrintStream;
putstatic ch.qos.logback.core.util.StatusPrinter.ps:Ljava/io/PrintStream;
1: new ch.qos.logback.core.util.CachingDateFormatter
dup
ldc "HH:mm:ss,SSS"
invokespecial ch.qos.logback.core.util.CachingDateFormatter.<init>:(Ljava/lang/String;)V
putstatic ch.qos.logback.core.util.StatusPrinter.cachingDateFormat:Lch/qos/logback/core/util/CachingDateFormatter;
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 java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/util/StatusPrinter;
public static void setPrintStream(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
putstatic ch.qos.logback.core.util.StatusPrinter.ps:Ljava/io/PrintStream;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 printStream Ljava/io/PrintStream;
MethodParameters:
Name Flags
printStream
public static void printInCaseOfErrorsOrWarnings(ch.qos.logback.core.Context);
descriptor: (Lch/qos/logback/core/Context;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
invokestatic ch.qos.logback.core.util.StatusPrinter.printInCaseOfErrorsOrWarnings:(Lch/qos/logback/core/Context;J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lch/qos/logback/core/Context;
MethodParameters:
Name Flags
context
public static void printInCaseOfErrorsOrWarnings(ch.qos.logback.core.Context, long);
descriptor: (Lch/qos/logback/core/Context;J)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Context argument cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface ch.qos.logback.core.Context.getStatusManager:()Lch/qos/logback/core/status/StatusManager;
astore 3
start local 3 3: aload 3
ifnonnull 6
4: getstatic ch.qos.logback.core.util.StatusPrinter.ps:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "WARN: Context named \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface ch.qos.logback.core.Context.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" has no status manager"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: goto 9
6: StackMap locals: ch.qos.logback.core.status.StatusManager
StackMap stack:
new ch.qos.logback.core.status.StatusUtil
dup
aload 0
invokespecial ch.qos.logback.core.status.StatusUtil.<init>:(Lch/qos/logback/core/Context;)V
astore 4
start local 4 7: aload 4
lload 1
invokevirtual ch.qos.logback.core.status.StatusUtil.getHighestLevel:(J)I
iconst_1
if_icmplt 9
8: aload 3
lload 1
invokestatic ch.qos.logback.core.util.StatusPrinter.print:(Lch/qos/logback/core/status/StatusManager;J)V
end local 4 9: StackMap locals:
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 context Lch/qos/logback/core/Context;
0 10 1 threshold J
3 10 3 sm Lch/qos/logback/core/status/StatusManager;
7 9 4 statusUtil Lch/qos/logback/core/status/StatusUtil;
MethodParameters:
Name Flags
context
threshold
public static void printIfErrorsOccured(ch.qos.logback.core.Context);
descriptor: (Lch/qos/logback/core/Context;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Context argument cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface ch.qos.logback.core.Context.getStatusManager:()Lch/qos/logback/core/status/StatusManager;
astore 1
start local 1 3: aload 1
ifnonnull 6
4: getstatic ch.qos.logback.core.util.StatusPrinter.ps:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "WARN: Context named \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface ch.qos.logback.core.Context.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" has no status manager"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: goto 9
6: StackMap locals: ch.qos.logback.core.status.StatusManager
StackMap stack:
new ch.qos.logback.core.status.StatusUtil
dup
aload 0
invokespecial ch.qos.logback.core.status.StatusUtil.<init>:(Lch/qos/logback/core/Context;)V
astore 2
start local 2 7: aload 2
lconst_0
invokevirtual ch.qos.logback.core.status.StatusUtil.getHighestLevel:(J)I
iconst_2
if_icmpne 9
8: aload 1
invokestatic ch.qos.logback.core.util.StatusPrinter.print:(Lch/qos/logback/core/status/StatusManager;)V
end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 context Lch/qos/logback/core/Context;
3 10 1 sm Lch/qos/logback/core/status/StatusManager;
7 9 2 statusUtil Lch/qos/logback/core/status/StatusUtil;
MethodParameters:
Name Flags
context
public static void print(ch.qos.logback.core.Context);
descriptor: (Lch/qos/logback/core/Context;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
invokestatic ch.qos.logback.core.util.StatusPrinter.print:(Lch/qos/logback/core/Context;J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lch/qos/logback/core/Context;
MethodParameters:
Name Flags
context
public static void print(ch.qos.logback.core.Context, long);
descriptor: (Lch/qos/logback/core/Context;J)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Context argument cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface ch.qos.logback.core.Context.getStatusManager:()Lch/qos/logback/core/status/StatusManager;
astore 3
start local 3 3: aload 3
ifnonnull 6
4: getstatic ch.qos.logback.core.util.StatusPrinter.ps:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "WARN: Context named \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface ch.qos.logback.core.Context.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" has no status manager"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: goto 7
6: StackMap locals: ch.qos.logback.core.status.StatusManager
StackMap stack:
aload 3
lload 1
invokestatic ch.qos.logback.core.util.StatusPrinter.print:(Lch/qos/logback/core/status/StatusManager;J)V
7: StackMap locals:
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 context Lch/qos/logback/core/Context;
0 8 1 threshold J
3 8 3 sm Lch/qos/logback/core/status/StatusManager;
MethodParameters:
Name Flags
context
threshold
public static void print(ch.qos.logback.core.status.StatusManager);
descriptor: (Lch/qos/logback/core/status/StatusManager;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
invokestatic ch.qos.logback.core.util.StatusPrinter.print:(Lch/qos/logback/core/status/StatusManager;J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 sm Lch/qos/logback/core/status/StatusManager;
MethodParameters:
Name Flags
sm
public static void print(ch.qos.logback.core.status.StatusManager, long);
descriptor: (Lch/qos/logback/core/status/StatusManager;J)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 1: aload 0
invokeinterface ch.qos.logback.core.status.StatusManager.getCopyOfStatusList:()Ljava/util/List;
lload 1
invokestatic ch.qos.logback.core.status.StatusUtil.filterStatusListByTimeThreshold:(Ljava/util/List;J)Ljava/util/List;
astore 4
start local 4 2: aload 3
aload 4
invokestatic ch.qos.logback.core.util.StatusPrinter.buildStrFromStatusList:(Ljava/lang/StringBuilder;Ljava/util/List;)V
3: getstatic ch.qos.logback.core.util.StatusPrinter.ps:Ljava/io/PrintStream;
aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: return
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 sm Lch/qos/logback/core/status/StatusManager;
0 5 1 threshold J
1 5 3 sb Ljava/lang/StringBuilder;
2 5 4 filteredList Ljava/util/List<Lch/qos/logback/core/status/Status;>;
MethodParameters:
Name Flags
sm
threshold
public static void print(java.util.List<ch.qos.logback.core.status.Status>);
descriptor: (Ljava/util/List;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokestatic ch.qos.logback.core.util.StatusPrinter.buildStrFromStatusList:(Ljava/lang/StringBuilder;Ljava/util/List;)V
2: getstatic ch.qos.logback.core.util.StatusPrinter.ps:Ljava/io/PrintStream;
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 statusList Ljava/util/List<Lch/qos/logback/core/status/Status;>;
1 4 1 sb Ljava/lang/StringBuilder;
Signature: (Ljava/util/List<Lch/qos/logback/core/status/Status;>;)V
MethodParameters:
Name Flags
statusList
private static void buildStrFromStatusList(java.lang.StringBuilder, java.util.List<ch.qos.logback.core.status.Status>);
descriptor: (Ljava/lang/StringBuilder;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: java.lang.StringBuilder java.util.List top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast ch.qos.logback.core.status.Status
astore 2
start local 2 4: aload 0
ldc ""
aload 2
invokestatic ch.qos.logback.core.util.StatusPrinter.buildStr:(Ljava/lang/StringBuilder;Ljava/lang/String;Lch/qos/logback/core/status/Status;)V
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 sb Ljava/lang/StringBuilder;
0 7 1 statusList Ljava/util/List<Lch/qos/logback/core/status/Status;>;
4 5 2 s Lch/qos/logback/core/status/Status;
Signature: (Ljava/lang/StringBuilder;Ljava/util/List<Lch/qos/logback/core/status/Status;>;)V
MethodParameters:
Name Flags
sb
statusList
private static void appendThrowable(java.lang.StringBuilder, java.lang.Throwable);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/Throwable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic ch.qos.logback.core.helpers.ThrowableToStringArray.convert:(Ljava/lang/Throwable;)[Ljava/lang/String;
astore 2
start local 2 1: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 10
StackMap locals: java.lang.StringBuilder java.lang.Throwable java.lang.String[] top int int java.lang.String[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 3
ldc "Caused by: "
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
4: aload 3
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isDigit:(C)Z
ifeq 7
5: aload 0
ldc "\t... "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: goto 8
7: StackMap locals: java.lang.StringBuilder java.lang.Throwable java.lang.String[] java.lang.String int int java.lang.String[]
StackMap stack:
aload 0
ldc "\tat "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic ch.qos.logback.core.CoreConstants.LINE_SEPARATOR:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 3 9: iinc 4 1
StackMap locals: java.lang.StringBuilder java.lang.Throwable java.lang.String[] top int int java.lang.String[]
StackMap stack:
10: iload 4
iload 5
if_icmplt 2
11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 sb Ljava/lang/StringBuilder;
0 12 1 t Ljava/lang/Throwable;
1 12 2 stringRep [Ljava/lang/String;
3 9 3 s Ljava/lang/String;
MethodParameters:
Name Flags
sb
t
public static void buildStr(java.lang.StringBuilder, java.lang.String, ch.qos.logback.core.status.Status);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/String;Lch/qos/logback/core/status/Status;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface ch.qos.logback.core.status.Status.hasChildren:()Z
ifeq 3
1: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "+ "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 2: goto 4
end local 3 3: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "|-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 4: StackMap locals: java.lang.String
StackMap stack:
getstatic ch.qos.logback.core.util.StatusPrinter.cachingDateFormat:Lch/qos/logback/core/util/CachingDateFormatter;
ifnull 7
5: getstatic ch.qos.logback.core.util.StatusPrinter.cachingDateFormat:Lch/qos/logback/core/util/CachingDateFormatter;
aload 2
invokeinterface ch.qos.logback.core.status.Status.getDate:()Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
invokevirtual ch.qos.logback.core.util.CachingDateFormatter.format:(J)Ljava/lang/String;
astore 4
start local 4 6: aload 0
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 7: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
getstatic ch.qos.logback.core.CoreConstants.LINE_SEPARATOR:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: aload 2
invokeinterface ch.qos.logback.core.status.Status.getThrowable:()Ljava/lang/Throwable;
ifnull 10
9: aload 0
aload 2
invokeinterface ch.qos.logback.core.status.Status.getThrowable:()Ljava/lang/Throwable;
invokestatic ch.qos.logback.core.util.StatusPrinter.appendThrowable:(Ljava/lang/StringBuilder;Ljava/lang/Throwable;)V
10: StackMap locals:
StackMap stack:
aload 2
invokeinterface ch.qos.logback.core.status.Status.hasChildren:()Z
ifeq 16
11: aload 2
invokeinterface ch.qos.logback.core.status.Status.iterator:()Ljava/util/Iterator;
astore 4
start local 4 12: goto 15
13: StackMap locals: java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast ch.qos.logback.core.status.Status
astore 5
start local 5 14: aload 0
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokestatic ch.qos.logback.core.util.StatusPrinter.buildStr:(Ljava/lang/StringBuilder;Ljava/lang/String;Lch/qos/logback/core/status/Status;)V
end local 5 15: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
end local 4 16: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 sb Ljava/lang/StringBuilder;
0 17 1 indentation Ljava/lang/String;
0 17 2 s Lch/qos/logback/core/status/Status;
2 3 3 prefix Ljava/lang/String;
4 17 3 prefix Ljava/lang/String;
6 7 4 dateStr Ljava/lang/String;
12 16 4 ite Ljava/util/Iterator<Lch/qos/logback/core/status/Status;>;
14 15 5 child Lch/qos/logback/core/status/Status;
MethodParameters:
Name Flags
sb
indentation
s
}
SourceFile: "StatusPrinter.java"