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

Make logs pretty for development #79

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Make logs pretty for development #79

merged 1 commit into from
Aug 2, 2024

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Aug 2, 2024

Developing locally was a bit complicated witht he logs we have. Pino logger writes in JSON format, which makes it super hard to read:

Screenshot at Aug 02 15-57-31

Now it uses the following pretty logger for local:

Screenshot at Aug 02 15-58-05

It will check the value of NODE_ENV and only when it is production, it will use the default JSON format.

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/pino-pretty@11.2.2 environment 0 235 kB matteo.collina

🚮 Removed packages: npm/pino-pretty@9.4.1

View full report↗︎

@anxolin anxolin requested a review from a team August 2, 2024 17:41
@anxolin anxolin merged commit 50861f2 into main Aug 2, 2024
6 checks passed
@anxolin anxolin deleted the make-logs-pretty branch August 2, 2024 17:51
Copy link
Contributor

@alfetopito alfetopito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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

Successfully merging this pull request may close these issues.

2 participants