Skip to content

Commit

Permalink
fix: πŸ› add a newline char for verbose log string (issue 1634)
Browse files Browse the repository at this point in the history
βœ… Closes: 1634
  • Loading branch information
neta committed Apr 25, 2023
1 parent 2c8c9b2 commit 1c2854e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/metal-dolls-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ogma/logger': patch
---

Fixed issues 1634 - Verbose logging bad printing
4 changes: 3 additions & 1 deletion packages/logger/src/logger/ogma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
}

Expand Down

0 comments on commit 1c2854e

Please sign in to comment.