class org.flywaydb.commandline.FileLog implements org.flywaydb.core.api.logging.Log
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.flywaydb.commandline.FileLog
super_class: java.lang.Object
{
private final java.nio.file.Path path;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.flywaydb.commandline.ConsoleLog$Level level;
descriptor: Lorg/flywaydb/commandline/ConsoleLog$Level;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.nio.file.Path, org.flywaydb.commandline.ConsoleLog$Level);
descriptor: (Ljava/nio/file/Path;Lorg/flywaydb/commandline/ConsoleLog$Level;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.flywaydb.commandline.FileLog.path:Ljava/nio/file/Path;
2: aload 0
aload 2
putfield org.flywaydb.commandline.FileLog.level:Lorg/flywaydb/commandline/ConsoleLog$Level;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/flywaydb/commandline/FileLog;
0 4 1 path Ljava/nio/file/Path;
0 4 2 level Lorg/flywaydb/commandline/ConsoleLog$Level;
MethodParameters:
Name Flags
path
level
public boolean isDebugEnabled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.flywaydb.commandline.FileLog.level:Lorg/flywaydb/commandline/ConsoleLog$Level;
getstatic org.flywaydb.commandline.ConsoleLog$Level.DEBUG:Lorg/flywaydb/commandline/ConsoleLog$Level;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/flywaydb/commandline/FileLog;
public void debug(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.flywaydb.commandline.FileLog.isDebugEnabled:()Z
ifeq 2
1: aload 0
ldc "DEBUG"
aload 1
invokevirtual org.flywaydb.commandline.FileLog.writeLogMessage:(Ljava/lang/String;Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/flywaydb/commandline/FileLog;
0 3 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public void info(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.flywaydb.commandline.FileLog.level:Lorg/flywaydb/commandline/ConsoleLog$Level;
getstatic org.flywaydb.commandline.ConsoleLog$Level.INFO:Lorg/flywaydb/commandline/ConsoleLog$Level;
invokevirtual org.flywaydb.commandline.ConsoleLog$Level.compareTo:(Ljava/lang/Enum;)I
ifgt 2
1: aload 0
aload 1
invokevirtual org.flywaydb.commandline.FileLog.writeLogMessage:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/flywaydb/commandline/FileLog;
0 3 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public void warn(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "WARNING"
aload 1
invokevirtual org.flywaydb.commandline.FileLog.writeLogMessage:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/flywaydb/commandline/FileLog;
0 2 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public void error(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "ERROR"
aload 1
invokevirtual org.flywaydb.commandline.FileLog.writeLogMessage:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/flywaydb/commandline/FileLog;
0 2 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public void error(java.lang.String, java.lang.Exception);
descriptor: (Ljava/lang/String;Ljava/lang/Exception;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 3
start local 3 1: aload 2
new java.io.PrintWriter
dup
aload 3
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintWriter;)V
2: aload 3
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
astore 4
start local 4 3: aload 0
ldc "ERROR"
aload 1
invokevirtual org.flywaydb.commandline.FileLog.writeLogMessage:(Ljava/lang/String;Ljava/lang/String;)V
4: aload 0
aload 4
invokevirtual org.flywaydb.commandline.FileLog.writeLogMessage:(Ljava/lang/String;)V
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/flywaydb/commandline/FileLog;
0 6 1 message Ljava/lang/String;
0 6 2 e Ljava/lang/Exception;
1 6 3 stringWriter Ljava/io/StringWriter;
3 6 4 stackTrace Ljava/lang/String;
MethodParameters:
Name Flags
message
e
private void writeLogMessage(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 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;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 0
aload 3
invokevirtual org.flywaydb.commandline.FileLog.writeLogMessage:(Ljava/lang/String;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/flywaydb/commandline/FileLog;
0 3 1 prefix Ljava/lang/String;
0 3 2 message Ljava/lang/String;
1 3 3 logMessage Ljava/lang/String;
MethodParameters:
Name Flags
prefix
message
private void writeLogMessage(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.flywaydb.commandline.FileLog.path:Ljava/nio/file/Path;
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 "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
iconst_2
anewarray java.nio.file.OpenOption
dup
iconst_0
getstatic java.nio.file.StandardOpenOption.APPEND:Ljava/nio/file/StandardOpenOption;
aastore
dup
iconst_1
getstatic java.nio.file.StandardOpenOption.WRITE:Ljava/nio/file/StandardOpenOption;
aastore
invokestatic java.nio.file.Files.write:(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 2
start local 2 3: new org.flywaydb.core.api.FlywayException
dup
new java.lang.StringBuilder
dup
ldc "Could not write to file at "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.flywaydb.commandline.FileLog.path:Ljava/nio/file/Path;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial org.flywaydb.core.api.FlywayException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/flywaydb/commandline/FileLog;
0 5 1 logMessage Ljava/lang/String;
3 4 2 exception Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
logMessage
}
SourceFile: "FileLog.java"
InnerClasses:
public final Level = org.flywaydb.commandline.ConsoleLog$Level of org.flywaydb.commandline.ConsoleLog