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

output formatter #15

Closed
reconbot opened this issue Dec 17, 2016 · 2 comments
Closed

output formatter #15

reconbot opened this issue Dec 17, 2016 · 2 comments

Comments

@reconbot
Copy link

If you need to filter a present output data in a special way, write a package to do it and publish it in npm.

I'd like to change the output a bit. I'm running on amazon lambda and I don't need the PID but I do need some extra environment variables. I was looking through the source and it doesn't seem like there is a good way to hook into how the logging object is created. Any pointers?

Thanks!

@rvagg
Copy link
Owner

rvagg commented Nov 13, 2019

sorry for the staleness of this

the answer is currently no but I'd be open to a PR if someone wants to tackle stringify pluggability, maybe an argument to output() that provides a custom stringify(level, name, message, obj) to override the internal.

@rvagg rvagg closed this as completed Nov 13, 2019
@reconbot
Copy link
Author

no worries!

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