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

Console.log are also logged to CloudWatch #34

Open
tgouala opened this issue Aug 17, 2020 · 1 comment
Open

Console.log are also logged to CloudWatch #34

tgouala opened this issue Aug 17, 2020 · 1 comment

Comments

@tgouala
Copy link

tgouala commented Aug 17, 2020

Hello,
Is there an option to log to cloudwatch only what is logged with Pino logger ? It seems that my calls to console.log are also logged to CloudWatch.

@dbhowell
Copy link
Owner

Hello,

Unfortunately this is the 'feature' of Pino, that is the transports are simply taking stdin and sending to CloudWatch. It keeps it simple, which has its drawbacks.

So any console.logs() would be transferred.

You might be able to use console.error() instead of console.log() since it wouldn't go to the stdin of pino-cloudwatch.

Someone may have a better idea though.

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