diff --git a/src/org/hwo/logging/Logging.java b/src/org/hwo/logging/Logging.java index 07c9b22..e318fe1 100644 --- a/src/org/hwo/logging/Logging.java +++ b/src/org/hwo/logging/Logging.java @@ -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){