|
|
@ -35,14 +35,15 @@ public class PrintStreamLogger implements IFernflowerLogger { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void writeMessage(String message, int severity) { |
|
|
|
public void writeMessage(String message, int severity) { |
|
|
|
writeMessage(message, severity, indent); |
|
|
|
if(severity >= this.severity) { |
|
|
|
|
|
|
|
stream.println(InterpreterUtil.getIndentString(indent)+names[severity]+": "+message); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void writeMessage(String message, int severity, int indent) { |
|
|
|
public void writeMessage(String message, Throwable t) { |
|
|
|
if(severity >= this.severity) { |
|
|
|
t.printStackTrace(stream); |
|
|
|
stream.println(InterpreterUtil.getIndentString(indent)+names[severity]+": "+message); |
|
|
|
writeMessage(message, ERROR); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void startClass(String classname) { |
|
|
|
public void startClass(String classname) { |
|
|
|
stream.println(InterpreterUtil.getIndentString(indent++)+"Processing class "+classname+" ..."); |
|
|
|
stream.println(InterpreterUtil.getIndentString(indent++)+"Processing class "+classname+" ..."); |
|
|
@ -79,8 +80,4 @@ public class PrintStreamLogger implements IFernflowerLogger { |
|
|
|
public void setSeverity(int severity) { |
|
|
|
public void setSeverity(int severity) { |
|
|
|
this.severity = severity; |
|
|
|
this.severity = severity; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean getShowStacktrace() { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|