ovhemert / pino-papertrail

🌲 Load pino logs into Papertrail
MIT License
17 stars 12 forks source link

Support for STDERR #19

Closed kuryaki closed 5 years ago

kuryaki commented 5 years ago

Right now it only streams the stdout not the stderr, is it because of any particular technical constraint?

ovhemert commented 5 years ago

Pino outputs all the log messages, including errors (level >= 50) to stdout. You can read the explanation for that here. That means that all messages can be piped to a transport using the same stream. This library/transport follows the same pattern, because it expects the errors also to come from the stdout stream in the pino json format.

kuryaki commented 5 years ago

Yup, I ended sending the stderr to stdout and got it from there :+1: