log4js-node/log4js-node

is there a way to catch IO errors?

Open

#575 geöffnet am 25. Okt. 2017

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (5.721 Stars) (787 Forks)batch import
enhancementhelp wanted

Beschreibung

is there a way to catch "There is not enough space on the disk" error (or any other IO errors) for dateFile and file appenders?

explanation:

we are use log4js on user side (it is electron app) with dateFile appender. And sometime free space can be finished on system drive. We are want notify user about this situation (and stop app activity because free space required for some operations).

so question: can we are some how catch this kind of errors (may be log4js.on("error", handler) or something like this)

Contributor Guide