From 152f4eddd9836e7aae965d5bb7704de84098f04b Mon Sep 17 00:00:00 2001 From: Romain Manni-Bucau Date: Mon, 4 Mar 2024 18:35:34 +0100 Subject: [PATCH] [formatter][json] simplify json formatter --- .../java/io/yupiik/logging/jul/formatter/JsonFormatter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yupiik-logging-jul/src/main/java/io/yupiik/logging/jul/formatter/JsonFormatter.java b/yupiik-logging-jul/src/main/java/io/yupiik/logging/jul/formatter/JsonFormatter.java index 826d9bf..6e25303 100644 --- a/yupiik-logging-jul/src/main/java/io/yupiik/logging/jul/formatter/JsonFormatter.java +++ b/yupiik-logging-jul/src/main/java/io/yupiik/logging/jul/formatter/JsonFormatter.java @@ -74,7 +74,7 @@ public String format(final LogRecord record) { if (customEntriesMapper != null) { final var data = customEntriesMapper.apply(record); if (data != null) { - data.forEach((k, v) -> json.append(",\"").append(k).append("\":").append(v).append("")); + data.forEach((k, v) -> json.append(",\"").append(k).append("\":").append(v)); } } return json.append('}').toString() + '\n';