log4js-node/log4js-node

is there a way to catch IO errors?

Open

#575 ouverte le 25 oct. 2017

Voir sur GitHub
 (4 commentaires) (0 réactions) (1 assigné)JavaScript (787 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (5 721 stars)
Métriques de merge PR
 (Merge moyen 423j 21h) (5 PRs mergées en 30 j)

Description

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)

Guide contributeur