winston
3.19.0 · 7 Dec 2025MIT36.6M / weekRepositoryHomepagenpmAtom feed
2.4.7 is the newest release of 2.x.
In short
8 breaking4 new3 fixed
- breaking
0f82204 Move
winston.transports.DailyRotateFileinto a separate module:require('winston-daily-rotate-file'); - breaking
- breaking
Change the method signature to a
filterfunction to be consistent withrewriterand log functions: - breaking
Other breaking changes
- breaking
Remove
winston.transports.Webhook. Usewinston.transports.Httpinstead. - breaking
Remove
Logger.prototype.addRewriterandLogger.prototype.addFiltersince they just push to an Array of functions. Uselogger.filters.pushorlogger.rewriters.pushexplicitly instead. - breaking
No longer respect the
handleExceptionsoption tonew winston.Logger. Instead just pass in theexceptionHandlersoption itself. - breaking
Removed
Logger.prototype.extendfunctionality
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.DailyRotateFileinto a separate module:require('winston-daily-rotate-file'); - breaking
Reverse log levels in
npmandcliconfigs to conform to RFC524. Fixes #424 #406 #290 - breaking
Change the method signature to a
filterfunction to be consistent withrewriterand log functions:
function filter (level, msg, meta, inst) {
// Filter logic goes here...
}Other breaking changes
- breaking
Remove
winston.transports.Webhook. Usewinston.transports.Httpinstead. - breaking
Remove
Logger.prototype.addRewriterandLogger.prototype.addFiltersince they just push to an Array of functions. Uselogger.filters.pushorlogger.rewriters.pushexplicitly instead. - breaking
No longer respect the
handleExceptionsoption tonew winston.Logger. Instead just pass in theexceptionHandlersoption itself. - breaking
Removed
Logger.prototype.extendfunctionality
New features
Added
Logger.prototype.configurewhich now contains all logic previously in thewinston.Loggerconstructor function. (indexzero)Update .npmignore (
coreybutler)Add an
eoloption to theConsoletransport. (aquavitae)Update
lib/transports.jsfor better static analysis. (indexzero)
Fixes, refactoring, and optimizations. OH MY!