Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Verbose logging bad printing #1634

Closed
2 of 4 tasks
nllahat opened this issue Apr 25, 2023 · 1 comment
Closed
2 of 4 tasks

[Bug]: Verbose logging bad printing #1634

nllahat opened this issue Apr 25, 2023 · 1 comment

Comments

@nllahat
Copy link
Contributor

nllahat commented Apr 25, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When using verbose: true along with json: false (I mainly do it when I run in localhost), it prints the lines a bit weird and it looks bad on the console:

image

Minimum reproduction code

https://gist.github.com/nllahat/aa9d9086848a40b750d6ec474dbcb992

Steps to reproduce

  1. use it in a nestjs project
  2. install ogma for nestjs
  3. add the gist above
  4. start the server

Expected behavior

every line should end with \n (even the verbose ones)

Package(s) version

  • @ogma/logger
  • @ogma/nestjs-module

Node.js version

18.14.2

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

I think I know how to fix it and I open this issue just to make a branch out of it for a PR

@nllahat
Copy link
Contributor Author

nllahat commented Apr 26, 2023

#1635

@nllahat nllahat closed this as completed Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant