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

Disable JSON logging for development #75

Open
ulich opened this issue Oct 20, 2021 · 2 comments
Open

Disable JSON logging for development #75

ulich opened this issue Oct 20, 2021 · 2 comments
Assignees
Milestone

Comments

@ulich
Copy link

ulich commented Oct 20, 2021

I completely understand that you should log in JSON format when deployed, but locally during development, even with dev: true the experience isn't that great because then each log entry spans multiple lines and you quickly loose the overview when trying to read many log statements

Have you maybe considered adding a new output format that is just logging out the plain message?

@KyleRoss KyleRoss self-assigned this Oct 20, 2021
@KyleRoss
Copy link
Owner

@ulich I'm actually adding a new configuration option to v4.0.0 that will allow you to customize the output of the log prior to logging it to the terminal when dev mode is enabled.

I'm hoping to have a few different examples of formatting the logs in the documentation on release but I also hope this will spark some plugins to be created by the community to provide many different options.

@KyleRoss KyleRoss added this to the v4.0.0 milestone Oct 20, 2021
@ulich
Copy link
Author

ulich commented Oct 20, 2021

Cool. I'm looking forward to this! Thank you

This was referenced Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants