Packages

winston

3.19.0 · 7 Dec 2025MIT36.6M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.0

major30 Oct 2015Where it was published

2.4.7 is the newest release of 2.x.

In short

8 breaking4 new3 fixed

  • breaking

    0f82204 Move winston.transports.DailyRotateFile into a separate module: require('winston-daily-rotate-file');

  • breaking

    Reverse log levels in npm and cli configs to conform to RFC524. Fixes #424 #406 #290

  • breaking

    Change the method signature to a filter function to be consistent with rewriter and log functions:

  • breaking

    Other breaking changes

  • breaking

    Remove winston.transports.Webhook. Use winston.transports.Http instead.

  • breaking

    Remove Logger.prototype.addRewriter and Logger.prototype.addFilter since they just push to an Array of functions. Use logger.filters.push or logger.rewriters.push explicitly instead.

  • breaking

    No longer respect the handleExceptions option to new winston.Logger. Instead just pass in the exceptionHandlers option itself.

  • breaking

    Removed Logger.prototype.extend functionality

Release note

v2.0.0 / 2015-10-29

Omg it's my sister's birthday edition

Breaking changes

Most important

  • breaking

    0f82204 Move winston.transports.DailyRotateFile into a separate module: require('winston-daily-rotate-file');

  • breaking

    Reverse log levels in npm and cli configs to conform to RFC524. Fixes #424 #406 #290

  • breaking

    Change the method signature to a filter function to be consistent with rewriter and log functions:

function filter (level, msg, meta, inst) {
  // Filter logic goes here...
}

Other breaking changes

  • breaking

    Remove winston.transports.Webhook. Use winston.transports.Http instead.

  • breaking

    Remove Logger.prototype.addRewriter and Logger.prototype.addFilter since they just push to an Array of functions. Use logger.filters.push or logger.rewriters.push explicitly instead.

  • breaking

    No longer respect the handleExceptions option to new winston.Logger. Instead just pass in the exceptionHandlers option itself.

  • breaking

    Removed Logger.prototype.extend functionality

New features

  • Added Logger.prototype.configure which now contains all logic previously in the winston.Logger constructor function. (indexzero)

  • Update .npmignore (coreybutler)

  • Add an eol option to the Console transport. (aquavitae)

  • Update lib/transports.js for better static analysis. (indexzero)

Fixes, refactoring, and optimizations. OH MY!

  • Allow File transport to be an objectMode writable stream. (stambata)

  • #527, 163f4f9, 3747ccf Performance optimizations and string interpolation edge cases (indexzero)

  • Code cleanup for reability, ad-hoc styleguide enforcement (indexzero)