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

Pino-tee logs twice on other file log. #104

Open
EmmanDizon opened this issue May 7, 2022 · 4 comments
Open

Pino-tee logs twice on other file log. #104

EmmanDizon opened this issue May 7, 2022 · 4 comments

Comments

@EmmanDizon
Copy link

The specific logs for certain logs is logging on other file log.
Example, I have created error.log and warn.log,

When i check the error.log, the message that i have created is there "TEST ERROR"
but when i check the warn log, the error log message is there, so basically on warn.log i have 2 logs
wherein it should have one only w/c "TEST WARN"

image
image

@mcollina
Copy link
Member

mcollina commented May 8, 2022

Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.

@EmmanDizon
Copy link
Author

Hi @mcollina, here is the github repo i have created: https://github.com/EmmanDizon/Issues-for-pino-tee-logger

@EmmanDizon
Copy link
Author

@mcollina the steps to reproduce is just that I run the code originally provided from this repository.

@mcollina
Copy link
Member

Why are you using pino-multi-stream and child_process instead of the transport logic within pino?

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