عن المشروع

modern-errors-winston is a Winston plugin for modern-errors library improving JavaScript error logging in Node.js. It offers BaseError.fullFormat() for structured logging with error properties, stack, custom props, nested cause errors, and AggregateError entries, and BaseError.shortFormat() for human-readable console output. Both use formats like format.json() or format.prettyPrint() for machine-readable logs. JSON-safe output ensures machine-readable logs and remote ingestion. Configurable at per error class, subclass, instance, and format call levels with optional stack trace override and uncaught exception handling. Compared to default format, it logs error name, supports nested errors, produces JSON-safe output, allows optional stack traces in short format, and preserves error instance. Requires ES module, Node.js 18.18.0+, and Winston separately installed.