Winston: exitOnError has wrong default behaviour

Created on 18 Sep 2015  路  2Comments  路  Source: winstonjs/winston

https://github.com/winstonjs/winston#to-exit-or-not-to-exit , Winston really should not interfere in the default behaviour of node itself, when an uncaughtException rises

It's a nice feature nevertheless, but please, make this default "FALSE" not true...!

Most helpful comment

I do not agree, sorry. In my opinion the sole purpose of a logger in general is logging, not stopping the process itself. Could be mistaken though 馃槈.

All 2 comments

This is an opt-in feature, winston does not interfere with a node process when an uncaughtException occurs by default.

I think you may simply be misreading the documentation since this is clearly stated in the documentation you linked to:

By default, winston will exit after logging an uncaughtException. if this is not the behavior you want, set exitOnError = false

I do not agree, sorry. In my opinion the sole purpose of a logger in general is logging, not stopping the process itself. Could be mistaken though 馃槈.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anks333 picture anks333  路  3Comments

Tonacatecuhtli picture Tonacatecuhtli  路  4Comments

alditis picture alditis  路  3Comments

bertolo1988 picture bertolo1988  路  3Comments

JaehyunLee-B2LiNK picture JaehyunLee-B2LiNK  路  3Comments