C: print stack trace in Logger class

This commit is contained in:
Alexey Andreev 2019-05-27 10:43:13 +03:00
parent 3364022313
commit 336590314c

View File

@ -64,6 +64,9 @@ public class TLogger {
System.out.print(record.getLevel().getName()); System.out.print(record.getLevel().getName());
System.out.print("] "); System.out.print("] ");
System.out.println(message); System.out.println(message);
if (record.getThrown() != null) {
record.getThrown().printStackTrace(System.out);
}
} else { } else {
if (record.getLevel().intValue() >= TLevel.SEVERE.intValue()) { if (record.getLevel().intValue() >= TLevel.SEVERE.intValue()) {
error(message); error(message);