We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a029772 commit ae49104Copy full SHA for ae49104
cf-java-logging-support-logback/src/main/java/com/sap/hcp/cf/logback/converter/TimestampConverter.java
@@ -16,11 +16,9 @@ public class TimestampConverter extends ClassicConverter {
16
17
@Override
18
public String convert(ILoggingEvent event) {
19
- StringBuilder appendTo = new StringBuilder();
20
- Instant now = Instant.now();
21
- long timestamp = now.getEpochSecond() * 1_000_000_000L + now.getNano();
22
- appendTo.append(timestamp);
23
- return appendTo.toString();
+ Instant now = Instant.now();
+ long timestamp = now.getEpochSecond() * 1_000_000_000L + now.getNano();
+ return String.valueOf(timestamp);
24
}
25
26
0 commit comments