A debug formatter for Winston 3.x that provides human-readable, colorized console output similar to Bunyan's debug stream. Current stable version is 1.4.0, released under semantic-release with automated updates. It supports syslog levels, custom colors (including hex), process name detection, PID display, configurable indentation, stack trace simplification via basePath, and property skipping. Released monthly on average. Distinguishes itself by offering fine-grained control over colorization (prefix, message, values), terminal width limits, and maximum exception lines, making it ideal for development debugging.
npm install winston-format-debugNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Winston logger with debugFormat to produce color-coded, human-readable console output, including extra metadata.
Use const debugFormat = require('winston-format-debug');Explicitly pass colors from winston.config or provide custom colors object.
To disable colors, set colors: false. To customize, provide a colors object and set individual colorize* options.
Omit processName or set to empty string to hide it.
Do not include those keys in skip; they are already ignored.
Use import debugFormat from 'winston-format-debug' (ESM) or const debugFormat = require('winston-format-debug') (CJS).Run npm install winston-format-debug
Wrap debugFormat() inside winston.format.combine(), e.g., format: winston.format.combine(debugFormat()).
Pass levels: winston.config.syslog.levels (or custom levels) to debugFormat.