From 1c2854ef7f876c337d629644db2821cb7a8acb9c Mon Sep 17 00:00:00 2001 From: neta Date: Tue, 25 Apr 2023 15:27:05 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20add=20a=20newline=20char?= =?UTF-8?q?=20for=20verbose=20log=20string=20(issue=201634)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: 1634 --- .changeset/metal-dolls-serve.md | 5 +++++ packages/logger/src/logger/ogma.ts | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/metal-dolls-serve.md diff --git a/.changeset/metal-dolls-serve.md b/.changeset/metal-dolls-serve.md new file mode 100644 index 000000000..28c74f48f --- /dev/null +++ b/.changeset/metal-dolls-serve.md @@ -0,0 +1,5 @@ +--- +'@ogma/logger': patch +--- + +Fixed issues 1634 - Verbose logging bad printing diff --git a/packages/logger/src/logger/ogma.ts b/packages/logger/src/logger/ogma.ts index 0660b417a..477383a6a 100644 --- a/packages/logger/src/logger/ogma.ts +++ b/packages/logger/src/logger/ogma.ts @@ -85,7 +85,9 @@ export class Ogma { formattedLevel: _formattedLevel, ...meta } = options; - this.options.stream.write(this.formatStream(meta, options)); + const verboseLogString = this.formatStream(meta, options); + + this.options.stream.write(`${verboseLogString}\n`); } }