|
|
@ -33,7 +33,7 @@ public class PrintStreamLogger extends IFernflowerLogger { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void writeMessage(String message, Severity severity) { |
|
|
|
public void writeMessage(String message, Severity severity) { |
|
|
|
if (accepts(severity)) { |
|
|
|
if (accepts(severity)) { |
|
|
|
stream.println(InterpreterUtil.getIndentString(indent) + severity.name() + ": " + message); |
|
|
|
stream.println(severity.prefix + InterpreterUtil.getIndentString(indent) + message); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -46,35 +46,49 @@ public class PrintStreamLogger extends IFernflowerLogger { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void startClass(String className) { |
|
|
|
public void startReadingClass(String className) { |
|
|
|
writeMessage("Processing class " + className + " ...", Severity.INFO); |
|
|
|
writeMessage("Decompiling class " + className, Severity.INFO); |
|
|
|
++indent; |
|
|
|
++indent; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void endClass() { |
|
|
|
public void endReadingClass() { |
|
|
|
--indent; |
|
|
|
--indent; |
|
|
|
writeMessage("... proceeded.", Severity.INFO); |
|
|
|
writeMessage("... done", Severity.INFO); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void startWriteClass(String className) { |
|
|
|
public void startClass(String className) { |
|
|
|
writeMessage("Writing class " + className + " ...", Severity.INFO); |
|
|
|
writeMessage("Processing class " + className, Severity.TRACE); |
|
|
|
++indent; |
|
|
|
++indent; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void endWriteClass() { |
|
|
|
public void endClass() { |
|
|
|
--indent; |
|
|
|
--indent; |
|
|
|
writeMessage("... written.", Severity.INFO); |
|
|
|
writeMessage("... proceeded", Severity.TRACE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void startMethod(String methodName) { |
|
|
|
public void startMethod(String methodName) { |
|
|
|
writeMessage("Processing method " + methodName + " ...", Severity.INFO); |
|
|
|
writeMessage("Processing method " + methodName, Severity.TRACE); |
|
|
|
|
|
|
|
++indent; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void endMethod() { |
|
|
|
public void endMethod() { |
|
|
|
writeMessage("... proceeded.", Severity.INFO); |
|
|
|
--indent; |
|
|
|
|
|
|
|
writeMessage("... proceeded", Severity.TRACE); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void startWriteClass(String className) { |
|
|
|
|
|
|
|
writeMessage("Writing class " + className, Severity.TRACE); |
|
|
|
|
|
|
|
++indent; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void endWriteClass() { |
|
|
|
|
|
|
|
--indent; |
|
|
|
|
|
|
|
writeMessage("... written", Severity.TRACE); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|