mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
Removed custom logging code, which is factored correctly elsewhere.
This commit is contained in:
parent
313816ee34
commit
76d876c039
@ -73,7 +73,6 @@ public class Logger {
|
|||||||
private static final int NAME_WIDTH = 14;
|
private static final int NAME_WIDTH = 14;
|
||||||
private static final int METHOD_WIDTH = 15;
|
private static final int METHOD_WIDTH = 15;
|
||||||
private static final int LEVEL_WIDTH = 8;
|
private static final int LEVEL_WIDTH = 8;
|
||||||
private static java.io.PrintStream outFile;
|
|
||||||
|
|
||||||
public Object clone() { return this; }
|
public Object clone() { return this; }
|
||||||
public void close() { }
|
public void close() { }
|
||||||
@ -126,22 +125,6 @@ public class Logger {
|
|||||||
sb.append(r.getMessage());
|
sb.append(r.getMessage());
|
||||||
maybeLogThrown(sb, r.getThrown());
|
maybeLogThrown(sb, r.getThrown());
|
||||||
System.out.println(sb.toString());
|
System.out.println(sb.toString());
|
||||||
if (outFile != null) {
|
|
||||||
outFile.println(sb.toString());
|
|
||||||
outFile.flush();
|
|
||||||
} else {
|
|
||||||
if (System.getProperty("rt.log.dir") != null) {
|
|
||||||
try {
|
|
||||||
outFile =
|
|
||||||
new java.io.PrintStream
|
|
||||||
(new java.io.FileOutputStream
|
|
||||||
(new java.io.File(System.getProperty("rt.log.dir"), "log.txt")));
|
|
||||||
} catch (Exception ex) {
|
|
||||||
ex.printStackTrace();
|
|
||||||
outFile = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user