trentm/node-bunyan

Multi-threading with Bunyan

afridi26 opened this issue · 0 comments

Hey,

we are using Bunyan library to print logs to stdout where these logs are saved to the Fluentd and then it is visualized in Kibana ( analysis and monitoring).

Our application is using node js. We have a lot of logs that print to stdout and we have a problem such that these logs are blocking the main thread. We though used node js feature leveraging worker threads but it seems not working. Can anyone guide or let me know does Bunyan support multithreading? or this is the only way to do it?

I will be thankful if anyone can guide me on how to solve this problem?
update:

I look into the streams provided by the Bunyan library. Can I use it to send the logs to the Fluentd?