Logging: Logging formatierung angepasst

thobaben_serialize
Harald Wolff 2016-12-14 10:54:21 +01:00
parent 85551c9000
commit 869643ce1b
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public class Logging {
if (logLevel.getLevel() > limitLogLevel)
return;
formattedLine = String.format("%s [%-8s] %s", dateFormat.format(new Date()),logLevel.toString(),message);
formattedLine = String.format("%s [%-12s] %s", dateFormat.format(new Date()),logLevel.toString(),message);
logStream.println(formattedLine);
logStream.flush();
@ -122,8 +122,8 @@ public class Logging {
log(LogLevel.DEBUG,String.format("%s: %s", e.getClass().getName(),ee.getDebugMessage()));
if (ee.getDebugDetails()!=null)
log(LogLevel.DEBUGDETAIL,String.format("%s: %s",e.getClass().getName(),ee.getDebugDetails()));
log(LogLevel.DEBUG,formatStackTrace(ee.getStackTrace()));
}
log(LogLevel.DEBUG,formatStackTrace(e.getStackTrace()));
}
static String formatStackTrace(StackTraceElement[] stackTrace){