unstale

npm / winston

winston

What changed in winston 1 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

45 breaking3 new APIs and options2 behavior and defaults6 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

winston 345 changes

Breaking changes 39

  • Removed as a transport formatting option; use format.align().

    3.0.0upgrade guide

  • Logger no longer performs automatic splat interpolation by default; use format.splat() to enable it.

    3.0.0upgrade guide

  • Removed as a transport formatting option; use format.colorize().

    3.0.0upgrade guide

  • Removed from Console transport options.

    3.0.0upgrade guide

  • The default logger no longer includes Console transports; leaving it without transports may cause high memory usage.

    3.0.0upgrade guide

  • Setting the default logger's level no longer sets the level on its transports.

    3.0.0upgrade guide

  • The default output format is now format.json().

    3.0.0upgrade guide

  • This option is provided to format.prettyPrint().

    3.0.0upgrade guide

  • Removed as a Logger formatting option; use a custom format instead.

    3.0.0upgrade guide

  • A new concept combines formatters and rewriters; custom formats can handle formatting without changes to winston core.

    3.0.0upgrade guide

  • Set this to false on all transports when handling exceptions under the new behavior.

    3.0.0upgrade guide

  • Now the default exception format.

    3.0.0upgrade guide

  • Removed as a transport formatting option; use format.json().

    3.0.0upgrade guide

  • Removed as a transport formatting option; use format.label().

    3.0.0upgrade guide

  • Removed.

    3.0.0upgrade guide

  • The transport option is removed; use the transport instance on the logger directly.

    3.0.0upgrade guide

  • The transport option is removed; use the transport instance on the logger directly.

    3.0.0upgrade guide

  • Removed as a transport formatting option; use format.logstash().

    3.0.0upgrade guide

  • Removed as a transport formatting option; use format.json().

    3.0.0upgrade guide

  • Removed as a Logger formatting option; use a custom format instead.

    3.0.0upgrade guide

  • The option now defaults to an empty array.

    3.0.0upgrade guide

  • Removed as a transport formatting option; use format.timestamp().

    3.0.0upgrade guide

  • Formatting options previously configured on transports should now be set by adding the appropriate formatter.

    3.0.0upgrade guide

  • No longer modifies transport state; it only adds or removes the uncaughtException process handler.

    3.0.0upgrade guide

  • Removed; use winston-compat.

    3.0.0upgrade guide

  • Removed.

    3.0.0upgrade guide

  • Removed; use winston-compat.

    3.0.0upgrade guide

  • Container instances no longer have default Console transports; having no transports may cause high memory usage.

    3.0.0upgrade guide

  • No longer performs the previous options parsing.

    3.0.0upgrade guide

  • Replaces winston.Logger construction; use it to create a logger.

    3.0.0upgrade guide

  • Removed; use winston.ExceptionHandler().

    3.0.0upgrade guide

  • Removed.

    3.0.0upgrade guide

  • Constructing with new winston.Logger(opts) is removed; use winston.createLogger(opts).

    3.0.0upgrade guide

  • No longer accepts transport prototypes or classes; pass a transport instance.

    3.0.0upgrade guide

  • No longer accepts a callback; to wait for logging to complete, listen for finish and end the logger.

    3.0.0upgrade guide

  • Removed.

    3.0.0upgrade guide

  • Removed; levels are frozen when a Logger is created.

    3.0.0upgrade guide

  • All log levels are sent to stdout by default.

    3.0.0upgrade guide

  • Removed; use a Node.js writable stream with a large highWaterMark instead.

    3.0.0upgrade guide

New APIs and options 1

  • Use this package when writing transports instead of winston.Transport.

    3.0.0upgrade guide

Behavior and default changes 1

  • In winston 3, info objects are considered mutable.

    3.0.0upgrade guide

Fixes and other changes 4

  • The File transport now flushes all data before emitting finish.

    3.19.0release notes

  • Error causes are now appended when using logger.child().

    3.19.0release notes

  • Adding the same transport twice no longer causes an error.

    3.0.0upgrade guide

  • Logging with no transports no longer responds with an error.

    3.0.0upgrade guide

winston 111 changes

Breaking changes 6

  • A logger instance is deleted from its Container when the close event is emitted.

    1.0.0release notes

  • The duration field is renamed to durationMs and is a number rather than a string ending in ms.

    1.0.0release notes

  • File transports emit an error when underlying streams fail after maxRetries attempts.

    1.0.0release notes

  • No default level is set; when a Transport level is falsey, a Logger uses its configured level instead.

    1.0.0release notes

  • File writing uses os.EOL by default.

    1.0.0release notes

  • Using colors no longer extends String prototypes as a side effect.

    1.0.0release notes

New APIs and options 2

Behavior and default changes 1

Fixes and other changes 2

  • A minor issue with maxFiles in the File transport is fixed.

    1.0.0release notes

  • Rendering of stack traces is fixed.

    1.0.0release notes