winston
3.19.0 · 7 Dec 2025MIT36.6M / weekRepositoryHomepagenpmAtom feed
106 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 2.x
2.0.0
30 Oct 2015- breaking
0f82204 Move
winston.transports.DailyRotateFileinto a separate module:require('winston-daily-rotate-file'); - breaking
Change the method signature to a
filterfunction to be consistent withrewriterand log functions:
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!
- 1.x
1.1.0
9 Oct 2015Fixed octal literal to work with node 4 strict mode (
wesleyeff)Add stderrLevels option to Console Transport and update docs (
paulhroth)Add the logger (this) in the fourth argument in the rewriters and filters functions (
christophehurpeau)
v1.1.0 / 2015-10-09
Greetings from cartagena edition
Notable Changes
Fixed octal literal to work with node 4 strict mode (
wesleyeff)Add stderrLevels option to Console Transport and update docs (
paulhroth)Add the logger (this) in the fourth argument in the rewriters and filters functions (
christophehurpeau)Fix Console Transport's align option tests (
paulhroth,kikobeats)Adding winston-aws-cloudwatch to transport docs (
timdp)
1.0.2
25 Sep 2015Add Gitter badge (
The Gitter Badger)Get
tailFilefunction working on latest/all node versions (Christopher Jeffrey)
Let's talk on gitter edition
Notable Changes
Add Gitter badge (
The Gitter Badger)Correct listeners in
logException. Fixes #218 #213 #327. (indexzero)Get
tailFilefunction working on latest/all node versions (Christopher Jeffrey)Fixed event subscription on close (
Roman Stetsyshin)
Other changes
TravisCI updates & best practices 87b97cc 91a5bc4, cf24e6a (
indexzero)Bump async version (
Roderick Hsiao)Documentation updates & fixes 86d7527, 38254c1, 04e2928, 61c8a89, c42a783, 0688a22, eabc113 c9506b7, 17534d2, b575e7b (
Stefan Thies,charukiewicz,unLucio,Adam Cohen,Denis Gorbachev,Frederik Ring,Luigi Pinca,jeffreypriebe)Documentation refactor & cleanup a19607e, d1932b4, 7a13132 (
indexzero)
1.0.0
7 Apr 2015- breaking
Do not extend
Stringprototypes as a side effect of usingcolors. (kenperkins) - breaking
File transports now emit
erroron error of the underlying streams aftermaxRetriesattempts. (ambbell).
v1.0.0 / 2015-04-07
Omg 1.0.0 finally edition
Breaking Changes
- breaking
Do not extend
Stringprototypes as a side effect of usingcolors. (kenperkins) - breaking
File transports now emit
erroron error of the underlying streams aftermaxRetriesattempts. (ambbell). - breaking
#583, 92729a Use
os.EOLfor all file writing by default. (Mik13,indexzero) - breaking
Delete logger instance from
Containerwhencloseevent is emitted. (snater) - breaking
Rename
durationtodurationMs, which is now a number a not a string ending inms. (neoziro) - breaking
Do not set a default level. When
levelis falsey on anyTransportinstance, anyLoggerinstance uses the configured level (instead of the Transport level) (jstamerj).
Other changes
- 0.9.x
0.9.0
3 Feb 2015Updated default option handling for CLI (
oojacoboo).Only support
node >= 0.8.0. (indexzero)
v0.9.0 / 2015-02-03
Updated default option handling for CLI (
oojacoboo).Only support
node >= 0.8.0. (indexzero)91a1e90, 50163a0 Fix #84 Enable a better unhandled exception experience (
samz)Added tailable option to file transport which rolls files backwards instead of creating incrementing appends. Implements #268 (
neouser99)Custom log formatter functionality were added. (
Melnyk Andii)Added showLevel flag to common.js, file*, memory and console transports. (
Tony Germaneri)Adding custom pretty print function test. (
Alberto Pose)Adding prettyPrint parameter as function example. (
Alberto Pose)Implemented filters #526 (
Chris Oloff)Added the options to colorize only the level, only the message or all. Default behavior is kept. Using true will only colorize the level and false will not colorize anything. (
Michiel De Mey)Prevent message from meta input being overwritten (
Leonard Martin)Allow for transports to be removed by their string name [test fix] Add test coverage for multiple transports of the same type added in #187. [doc] Document using multiple transports of the same type (
indexzero)Add depth options for meta pretty print (
Loïc Mahieu)Allow debug messages to be sent to stdout (
John Frizelle)Handle Error instances in a sane way since their properties are non-enumerable by default. Fixes #280. (
indexzero)Have a default
untilbefore a defaultfrom. Fixes #478. (indexzero)Fix logging regular expression objects (
Chasen Le Hara)Add option for EOL chars on FileTransport (
José F. Romaniello)Remove duplicate logstash option (
José F. Romaniello)Update declaration block according to project's style guide (
Ricardo Torres)Fixes #306: Can't set customlevels to my loggers (RangeError: Maximum call stack size exceeded) (
Alberto Pose)Call
res.resume()in HttpTransport to get around known issues in streams2. (indexzero)Updated default option handling for CLI (
Jacob Thomason)Added logstash support to console transport (
Ramon Snir)Module isStream should be isstream (
Michael Neil)Options.prettyPrint can now be a function (
Matt Zukowski)Adding rotationFormat prop to file.js (
orcaman)Allow custom exception level (
jupiter)
- 0.8.x
0.8.3
4 Nov 20140.8.1
6 Oct 20140.8.1 / 2014-10-06
Add label option for DailyRotateFile transport (
francoisTemasys)fix Logger#transports length check upon Logger#log (
adriano-di-giovanni,indexzero)Added color for pre-defined cli set. (
danilo1105,indexzero)Included the label from options to the output in JSON mode. (
arxony)Allow using logstash option with the File transport (
gmajoulet)Be more defensive when working with
querymethods from Transports. Fixes #356. (indexzero)Updated README.md - Replaced properties with those listed in winston-mongodb module
0.8.0
15 Sep 2014Configuration is now shalow cloned.
0.8.0 / 2014-09-15
Configuration is now shalow cloned.
Fix for "flush" event should always fire after "flush" call bug
Added tests for file: open and stress.
- 0.7.x
- 0.6.x
0.6.2
8 Jul 2012Added prettyPrint option for console logging
Multi-line values for conditional returns are not allowed
Added acceptance of
stringifyoption
0.6.2 / 2012-07-08
Added prettyPrint option for console logging
Multi-line values for conditional returns are not allowed
Added acceptance of
stringifyoptionFixed padding for log levels
0.6.1
31 May 2012- 0.5.x
0.5.0 – 0.5.1112 releases without a noteShow each
- 0.4.x
- 0.3.x
- 0.2.x
0.2.1 – 0.2.1111 releases without a noteShow each