Logging: Logging formatierung angepasst
parent
85551c9000
commit
869643ce1b
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue