winston v2.0.0 Release Notes
Release Date: 2015-10-29 // over 8 years ago-
OMG IT'S MY SISTER'S BIRTHDAY EDITION
๐ฅ Breaking changes
Most important
- ๐ 0f82204 Move
winston.transports.DailyRotateFile
into a separate module:require('winston-daily-rotate-file');
- ๐ fb9eec0 Reverse log levels in
npm
andcli
configs to conform to RFC524. Fixes #424 #406 #290 - ๐ฒ 8cd8368 Change the method signature to a
filter
function to be consistent withrewriter
and log functions:js function filter (level, msg, meta, inst) { // Filter logic goes here... }
Other breaking changes
- ๐ e0c9dde Remove
winston.transports.Webhook
. Usewinston.transports.Http
instead. - ๐ f71e638 Remove
Logger.prototype.addRewriter
andLogger.prototype.addFilter
since they just push to an Array of functions. Uselogger.filters.push
orlogger.rewriters.push
explicitly instead. - a470ab5 No longer respect the
handleExceptions
option tonew winston.Logger
. Instead just pass in theexceptionHandlers
option itself. - ๐ 8cb7048 Removed
Logger.prototype.extend
functionality
๐ New features
- ๐ง 3aa990c Added
Logger.prototype.configure
which now contains all logic previously in thewinston.Logger
constructor function. (indexzero
) - โก๏ธ #726 Update .npmignore (
coreybutler
) - #700 Add an
eol
option to theConsole
transport. (aquavitae
) - โก๏ธ #731 Update
lib/transports.js
for better static analysis. (indexzero
)
๐ Fixes, refactoring, and optimizations. OH MY!
- ๐ 0f82204 Move