Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ public class TimestampConverter extends ClassicConverter {

@Override
public String convert(ILoggingEvent event) {
StringBuilder appendTo = new StringBuilder();
Instant now = Instant.now();
long timestamp = now.getEpochSecond() * 1_000_000_000L + now.getNano();
appendTo.append(timestamp);
return appendTo.toString();
Instant now = Instant.now();
long timestamp = now.getEpochSecond() * 1_000_000_000L + now.getNano();
return String.valueOf(timestamp);
}

@Override
Expand Down