log4js-node/log4js-node

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

开放

#1,114 创建于 2022年1月5日

 (5 条评论) (0 个反应) (0 位负责人)JavaScript (787 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (5,721 个星标)
PR 合并指标
 (平均合并 423天 21小时) (30 天内合并 5 个 PR)

描述

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.

贡献者指南