Skip to content

Commit

Permalink
fix(formatter): Add newline between log events when format string is …
Browse files Browse the repository at this point in the history
…empty (fixes #136). (#137)
  • Loading branch information
davemarco authored Nov 28, 2024
1 parent 82e677e commit 939d4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/formatters/YscopeFormatter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class YscopeFormatter implements Formatter {
formatLogEvent (logEvent: LogEvent): string {
// Empty format string is special case where formatter returns all fields as JSON.
if ("" === this.#processedFormatString) {
return jsonValueToString(logEvent.fields);
return `${jsonValueToString(logEvent.fields)}\n`;
}

const formattedLogFragments: string[] = [];
Expand Down

0 comments on commit 939d4ac

Please sign in to comment.