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

Can you stop Pino from logging to the browser console? #1347

Closed
moshie opened this issue Feb 23, 2022 · 6 comments
Closed

Can you stop Pino from logging to the browser console? #1347

moshie opened this issue Feb 23, 2022 · 6 comments

Comments

@moshie
Copy link
Contributor

moshie commented Feb 23, 2022

Hi,

Currently we are using a custom transport to handle logs we noticed that pino is also logging to the browser's console.

Is there any way of turning this off in a production environment?

Sorry if this is already answered in the docs I couldn't find it anywhere.

@mcollina
Copy link
Member

I don't think it's possible to disable right now, would you like to open up a PR?

@moshie
Copy link
Contributor Author

moshie commented Feb 23, 2022

Sure, how would you like it to work?

@mcollina
Copy link
Member

Maybe add a flag to disable it?

@ntedgi
Copy link

ntedgi commented Mar 23, 2022

hi @moshie are you still working on it ? if not i would like to help here

@moshie
Copy link
Contributor Author

moshie commented Mar 23, 2022

Hey nope haven't started this yet feel free to pick it up 🙂

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants