log4js-node/log4js-node

log4js.fileAppender - Writing to file .../server.log, error happened

Aperta

#1114 aperta il 5 gen 2022

 (5 commenti) (0 reazioni) (0 assegnatari)JavaScript (787 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (5721 stelle)
Metriche merge PR
 (Merge medio 423g 21h) (5 PR mergiate in 30 g)

Descrizione

Hello All,

First, Happy new year to all. I'am facing issues working with log4js@4.5.1 when disk is full. My error is : log4js.fileAppender - Writing to file [...]/server.log, error happened { Error: ENOSPC: no space left on device, write at Error (native) errno: -28, code: 'ENOSPC', syscall: 'write' } I want to catch "ENOSPC" error and do some actions. In my code, i added a "uncaughtException" listener and do some stuff when "ENOSPC" error triggers. But when the ENOSPC triggers, my listener is never called! can anyone helps me in what to properly catch that error from log4js please?

Regards.

Guida contributor