|
|
@ -35,15 +35,16 @@ public class PrintStreamLogger implements IFernflowerLogger { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void writeMessage(String message, int severity) { |
|
|
|
public void writeMessage(String message, int severity) { |
|
|
|
writeMessage(message, severity, indent); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void writeMessage(String message, int severity, int indent) { |
|
|
|
|
|
|
|
if(severity >= this.severity) { |
|
|
|
if(severity >= this.severity) { |
|
|
|
stream.println(InterpreterUtil.getIndentString(indent)+names[severity]+": "+message); |
|
|
|
stream.println(InterpreterUtil.getIndentString(indent)+names[severity]+": "+message); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void writeMessage(String message, Throwable t) { |
|
|
|
|
|
|
|
t.printStackTrace(stream); |
|
|
|
|
|
|
|
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; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|