A Winston@3 console formatter that uses util.inspect() to produce detailed, colorized log output ideal for debugging. Version 1.0.8 is the latest stable release; the package is mature with infrequent updates. It supports ESM and CJS, ships TypeScript types, and is designed specifically for Winston 3.x. Key differentiator: uses Node's util.inspect() for deep object inspection with configurable depth, colors, and formatting options, making it more suitable for debugging complex objects than built-in Winston formatters.
npm install winston-console-formatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Winston logger with the consoleFormat formatter, using util.inspect options and meta stripping for debugging.
Always use format.combine() with other formatters (colorize, padLevels) before consoleFormat.
Ensure format.colorize({ all: true }) is included before consoleFormat in the combine.Consider alternative formatters like winston-logstash or custom formats if active maintenance is needed.
Use a finite depth (e.g., 5) or ensure your objects don't have recusive references.
Run: npm install winston-console-format
Use: import { format } from 'winston'; then format.combine(...)Use named import: import { consoleFormat } from 'winston-console-format'