Skip to content

Commit

Permalink
Fix formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenlagus committed May 19, 2016
1 parent 6155731 commit dc474a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ private static String dateFormatterForLogs(LocalDateTime dateTime) {
}

private static String logMsgToFile(Level level, String msg, String dateForLog) {
return String.format("%s{%s} %s", dateForLog, level.toString(), msg);
return String.format("%s{%s} %s\n", dateForLog, level.toString(), msg);
}

private static String logThrowableToFile(Level level, String message, Throwable throwable, String dateForLog) {
String throwableLog = String.format("%s{%s} %s - %s", dateForLog, level.toString(), message, throwable.toString());
String throwableLog = String.format("%s{%s} %s - %s\n", dateForLog, level.toString(), message, throwable.toString());
for (StackTraceElement element : throwable.getStackTrace()) {
throwableLog += "\tat " + element + "\n";
}
Expand Down

0 comments on commit dc474a2

Please sign in to comment.