public class ch.qos.logback.core.ConsoleAppender<E> extends ch.qos.logback.core.OutputStreamAppender<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.core.ConsoleAppender
super_class: ch.qos.logback.core.OutputStreamAppender
{
protected ch.qos.logback.core.joran.spi.ConsoleTarget target;
descriptor: Lch/qos/logback/core/joran/spi/ConsoleTarget;
flags: (0x0004) ACC_PROTECTED
protected boolean withJansi;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
private static final java.lang.String WindowsAnsiOutputStream_CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "org.fusesource.jansi.WindowsAnsiOutputStream"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial ch.qos.logback.core.OutputStreamAppender.<init>:()V
1: aload 0
getstatic ch.qos.logback.core.joran.spi.ConsoleTarget.SystemOut:Lch/qos/logback/core/joran/spi/ConsoleTarget;
putfield ch.qos.logback.core.ConsoleAppender.target:Lch/qos/logback/core/joran/spi/ConsoleTarget;
2: aload 0
iconst_0
putfield ch.qos.logback.core.ConsoleAppender.withJansi:Z
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/core/ConsoleAppender<TE;>;
public void setTarget(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic ch.qos.logback.core.joran.spi.ConsoleTarget.findByName:(Ljava/lang/String;)Lch/qos/logback/core/joran/spi/ConsoleTarget;
astore 2
start local 2 1: aload 2
ifnonnull 4
2: aload 0
aload 1
invokevirtual ch.qos.logback.core.ConsoleAppender.targetWarn:(Ljava/lang/String;)V
3: goto 5
4: StackMap locals: ch.qos.logback.core.joran.spi.ConsoleTarget
StackMap stack:
aload 0
aload 2
putfield ch.qos.logback.core.ConsoleAppender.target:Lch/qos/logback/core/joran/spi/ConsoleTarget;
5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lch/qos/logback/core/ConsoleAppender<TE;>;
0 6 1 value Ljava/lang/String;
1 6 2 t Lch/qos/logback/core/joran/spi/ConsoleTarget;
MethodParameters:
Name Flags
value
public java.lang.String getTarget();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.ConsoleAppender.target:Lch/qos/logback/core/joran/spi/ConsoleTarget;
invokevirtual ch.qos.logback.core.joran.spi.ConsoleTarget.getName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/ConsoleAppender<TE;>;
private void targetWarn(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new ch.qos.logback.core.status.WarnStatus
dup
new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] should be one of "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokestatic ch.qos.logback.core.joran.spi.ConsoleTarget.values:()[Lch/qos/logback/core/joran/spi/ConsoleTarget;
invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
invokespecial ch.qos.logback.core.status.WarnStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
astore 2
start local 2 1: aload 2
new ch.qos.logback.core.status.WarnStatus
dup
ldc "Using previously set target, System.out by default."
aload 0
invokespecial ch.qos.logback.core.status.WarnStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokeinterface ch.qos.logback.core.status.Status.add:(Lch/qos/logback/core/status/Status;)V
2: aload 0
aload 2
invokevirtual ch.qos.logback.core.ConsoleAppender.addStatus:(Lch/qos/logback/core/status/Status;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/core/ConsoleAppender<TE;>;
0 4 1 val Ljava/lang/String;
1 4 2 status Lch/qos/logback/core/status/Status;
MethodParameters:
Name Flags
val
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.ConsoleAppender.target:Lch/qos/logback/core/joran/spi/ConsoleTarget;
invokevirtual ch.qos.logback.core.joran.spi.ConsoleTarget.getStream:()Ljava/io/OutputStream;
astore 1
start local 1 1: invokestatic ch.qos.logback.core.util.EnvUtil.isWindows:()Z
ifeq 3
aload 0
getfield ch.qos.logback.core.ConsoleAppender.withJansi:Z
ifeq 3
2: aload 0
aload 1
invokevirtual ch.qos.logback.core.ConsoleAppender.getTargetStreamForWindows:(Ljava/io/OutputStream;)Ljava/io/OutputStream;
astore 1
3: StackMap locals: java.io.OutputStream
StackMap stack:
aload 0
aload 1
invokevirtual ch.qos.logback.core.ConsoleAppender.setOutputStream:(Ljava/io/OutputStream;)V
4: aload 0
invokespecial ch.qos.logback.core.OutputStreamAppender.start:()V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lch/qos/logback/core/ConsoleAppender<TE;>;
1 6 1 targetStream Ljava/io/OutputStream;
private java.io.OutputStream getTargetStreamForWindows(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ldc "Enabling JANSI WindowsAnsiOutputStream for the console."
invokevirtual ch.qos.logback.core.ConsoleAppender.addInfo:(Ljava/lang/String;)V
1: ldc "org.fusesource.jansi.WindowsAnsiOutputStream"
ldc Ljava/lang/Object;
aload 0
getfield ch.qos.logback.core.ConsoleAppender.context:Lch/qos/logback/core/Context;
2: ldc Ljava/io/OutputStream;
aload 1
3: invokestatic ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter:(Ljava/lang/String;Ljava/lang/Class;Lch/qos/logback/core/Context;Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 4: aload 2
checkcast java.io.OutputStream
5: areturn
end local 2 6: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 7: aload 0
ldc "Failed to create WindowsAnsiOutputStream. Falling back on the default stream."
aload 2
invokevirtual ch.qos.logback.core.ConsoleAppender.addWarn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 2 8: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lch/qos/logback/core/ConsoleAppender<TE;>;
0 9 1 targetStream Ljava/io/OutputStream;
4 6 2 windowsAnsiOutputStream Ljava/lang/Object;
7 8 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 5 6 Class java.lang.Exception
MethodParameters:
Name Flags
targetStream
public boolean isWithJansi();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.ConsoleAppender.withJansi:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/ConsoleAppender<TE;>;
public void setWithJansi(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield ch.qos.logback.core.ConsoleAppender.withJansi:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/core/ConsoleAppender<TE;>;
0 2 1 withJansi Z
MethodParameters:
Name Flags
withJansi
}
Signature: <E:Ljava/lang/Object;>Lch/qos/logback/core/OutputStreamAppender<TE;>;
SourceFile: "ConsoleAppender.java"