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

How to log only errors, but not info messages? #6

Closed
vaban-ru opened this issue Oct 19, 2020 · 1 comment
Closed

How to log only errors, but not info messages? #6

vaban-ru opened this issue Oct 19, 2020 · 1 comment

Comments

@vaban-ru
Copy link

Hello, can i log only error events? Give me example please.

@vaban-ru vaban-ru changed the title How to log only error, but not info messages? How to log only errors, but not info messages? Oct 19, 2020
@aaronransley
Copy link
Owner

aaronransley commented Nov 4, 2020

Hi @webzlodimir, I would recommend looking into the Winston documentation. As-is, there isn't an option to disable the info logging on the Nuxt middleware events, but you can set your logger level to error to discard any lower level messages such as info.

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