public class org.springframework.boot.logging.java.SimpleFormatter extends java.util.logging.Formatter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.boot.logging.java.SimpleFormatter
super_class: java.util.logging.Formatter
{
private static final java.lang.String DEFAULT_FORMAT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "[%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS.%1$tL] - %8$s %4$s [%7$s] --- %3$s: %5$s%6$s%n"
private final java.lang.String format;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String pid;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Date date;
descriptor: Ljava/util/Date;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.util.logging.Formatter.<init>:()V
1: aload 0
ldc "LOG_FORMAT"
ldc "[%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS.%1$tL] - %8$s %4$s [%7$s] --- %3$s: %5$s%6$s%n"
invokestatic org.springframework.boot.logging.java.SimpleFormatter.getOrUseDefault:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield org.springframework.boot.logging.java.SimpleFormatter.format:Ljava/lang/String;
2: aload 0
ldc "PID"
ldc "????"
invokestatic org.springframework.boot.logging.java.SimpleFormatter.getOrUseDefault:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield org.springframework.boot.logging.java.SimpleFormatter.pid:Ljava/lang/String;
3: aload 0
new java.util.Date
dup
invokespecial java.util.Date.<init>:()V
putfield org.springframework.boot.logging.java.SimpleFormatter.date:Ljava/util/Date;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/boot/logging/java/SimpleFormatter;
public synchronized java.lang.String format(java.util.logging.LogRecord);
descriptor: (Ljava/util/logging/LogRecord;)Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.boot.logging.java.SimpleFormatter.date:Ljava/util/Date;
aload 1
invokevirtual java.util.logging.LogRecord.getMillis:()J
invokevirtual java.util.Date.setTime:(J)V
1: aload 1
invokevirtual java.util.logging.LogRecord.getLoggerName:()Ljava/lang/String;
astore 2
start local 2 2: aload 0
aload 1
invokevirtual org.springframework.boot.logging.java.SimpleFormatter.formatMessage:(Ljava/util/logging/LogRecord;)Ljava/lang/String;
astore 3
start local 3 3: aload 0
aload 1
invokevirtual org.springframework.boot.logging.java.SimpleFormatter.getThrowable:(Ljava/util/logging/LogRecord;)Ljava/lang/String;
astore 4
start local 4 4: aload 0
invokevirtual org.springframework.boot.logging.java.SimpleFormatter.getThreadName:()Ljava/lang/String;
astore 5
start local 5 5: aload 0
getfield org.springframework.boot.logging.java.SimpleFormatter.format:Ljava/lang/String;
bipush 8
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.springframework.boot.logging.java.SimpleFormatter.date:Ljava/util/Date;
aastore
dup
iconst_1
aload 2
aastore
dup
iconst_2
aload 1
invokevirtual java.util.logging.LogRecord.getLoggerName:()Ljava/lang/String;
aastore
dup
iconst_3
6: aload 1
invokevirtual java.util.logging.LogRecord.getLevel:()Ljava/util/logging/Level;
invokevirtual java.util.logging.Level.getLocalizedName:()Ljava/lang/String;
aastore
dup
iconst_4
aload 3
aastore
dup
iconst_5
aload 4
aastore
dup
bipush 6
aload 5
aastore
dup
bipush 7
aload 0
getfield org.springframework.boot.logging.java.SimpleFormatter.pid:Ljava/lang/String;
aastore
7: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/boot/logging/java/SimpleFormatter;
0 8 1 record Ljava/util/logging/LogRecord;
2 8 2 source Ljava/lang/String;
3 8 3 message Ljava/lang/String;
4 8 4 throwable Ljava/lang/String;
5 8 5 thread Ljava/lang/String;
MethodParameters:
Name Flags
record
private java.lang.String getThrowable(java.util.logging.LogRecord);
descriptor: (Ljava/util/logging/LogRecord;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.util.logging.LogRecord.getThrown:()Ljava/lang/Throwable;
ifnonnull 2
1: ldc ""
areturn
2: StackMap locals:
StackMap stack:
new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 2
start local 2 3: new java.io.PrintWriter
dup
aload 2
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 3
start local 3 4: aload 3
invokevirtual java.io.PrintWriter.println:()V
5: aload 1
invokevirtual java.util.logging.LogRecord.getThrown:()Ljava/lang/Throwable;
aload 3
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintWriter;)V
6: aload 3
invokevirtual java.io.PrintWriter.close:()V
7: aload 2
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/boot/logging/java/SimpleFormatter;
0 8 1 record Ljava/util/logging/LogRecord;
3 8 2 stringWriter Ljava/io/StringWriter;
4 8 3 printWriter Ljava/io/PrintWriter;
MethodParameters:
Name Flags
record
private java.lang.String getThreadName();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: ldc ""
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/logging/java/SimpleFormatter;
1 4 1 name Ljava/lang/String;
private static java.lang.String getOrUseDefault(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
astore 2
2: goto 4
3: StackMap locals: java.lang.String java.lang.String java.lang.String
StackMap stack: java.lang.Exception
pop
4: StackMap locals:
StackMap stack:
aload 2
ifnonnull 6
5: aload 1
astore 2
6: StackMap locals:
StackMap stack:
aload 0
aload 2
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 key Ljava/lang/String;
0 7 1 defaultValue Ljava/lang/String;
1 7 2 value Ljava/lang/String;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
key
defaultValue
}
SourceFile: "SimpleFormatter.java"