fluent / fluent-logger-node

A structured logger for Fluentd (Node.js)
Apache License 2.0
259 stars 83 forks source link

Reconnecting and flushing of queue message not working with winston #135

Closed sphansekar-cci closed 5 years ago

sphansekar-cci commented 5 years ago

I am not able to reconnect and flush the queue messages. I think we need to call _setupErrorHandler on constructor call in winston.js and _flushSendQueue on connect of socket in _setupErrorHandler .

I will create a pull request for the same and can verify it.

okkez commented 5 years ago

Thank you for reporting and create the PR. I will check the PR later.