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
  • Loading branch information
jmcdo29 authored Apr 26, 2023
2 parents 8c8f6cc + 869ab8f commit 247bf07
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 247bf07

Please sign in to comment.