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

logger disabled by default in v1+; add option to enable logger? #1497

Open
betalantz opened this issue Jan 23, 2024 · 1 comment
Open

logger disabled by default in v1+; add option to enable logger? #1497

betalantz opened this issue Jan 23, 2024 · 1 comment

Comments

@betalantz
Copy link

I've been looking for a way to config json-server to re-enable the logger from versions < v1. It's very useful to see a log of processed requests. Looking at the source code, I think I see the boolean to enable it, but it's currently hardcoded false. Could there be an option flag "-l", "--log" or some other way to enable it from the command line? Thank you.

@kaz1ngton
Copy link

Opened a pull request

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

2 participants