- Update chalk and lodash due minor security impact (#252)
- Allow filter out whitelisted request body (#258)
- Fix metaField/requestField/responseField typescript types (#259)
- Fix excess semicolon breaking Typescript compilation (#249)
- Update lodash to 4.17.19 (#245)
- Update statusLevels to accept Boolean or StatusLevel object in TypeScript definition (#244)
- Update lodash to 4.17.15 (#232)
- Add missing exceptionToMeta and skip to TypeScript definition (#234)
- Add blacklist fields to BaseErrorLoggerOptions interface (#230)
- Added
headerBlacklist
to BaseLoggerOptions for better typescript support (#228)
- Changed
metaField
configuration property functionality (see Readme.md) (#209) - BREAKING CHANGE - Moved type definitions to be embedded inside library (#123)
- Added "files" to package.json to reduce unnecessary files in released package
- Added StackDriver/Google Cloud Logging specific instructions to Readme.md
- Added
requestField
andresponseField
options to allow storing the request and response in different metadata fields (or not at all) - Fixed
meta
configuration option onerrorLogger
(was not functioning at all) - Added .editorconfig and reformatted library to match
- Added: Nested Whitelists (#225, @kapalex)
- Added: options.headerBlacklist (#217, @maxday)
- Replaced: _header -> getHeader (#210, @Gregoirevda)
- Replaced coverage tool blanket with nyc (#211, @golopot)
- Add eslint and fix lint errors (#212, @golopot)
- Fix large _.template memory consumption (#203, @slickmb)
- Add
format
tooptions
to allow user-specified formatting following winston@3 conventions (#190, @crellison)
express-winston@3 shouldn't have any breaking changes of its own, but there are breaking changes as a result of upgrading winston and Node.js.
express-winston@2.6.0 will be the last version to support winston@2.
- Drop support for winston < 3. winston@3 includes quite a few breaking changes. Check their changelog and upgrade guide to get an idea of winston's breaking changes.
- Drop support for Node.js < 6. v6 is the oldest version of Node.js currently supported by the Node.js team.
- Add
exceptionToMeta
andblacklistedMetaFields
for filtering returned meta object (#173, @cubbuk)
- Allow
msg
to be a function (#160, @brendancwood)
- Reduce memory usage (#164, @Kmaschta)
- Allow
options.level
to be a function for dynamic level setting (#148, @CryptArchy)
- Allow line breaks inside
msg
interpolation (#143, @ltegman)
- Add dynamic metadata support to error logger (#139, @scarlettsteph)
- Re-enable logging of req.body when request whitelist contains body and there is no no body whitelist/blacklist (broken in 2.1.1) (#136)
- Fix error throwing when no req is logged (#130)
- Fix
bodyBlacklist
not working whenrequestWhitelist
containsbody
(#128, @jacobcabantomski-ct)
- Add dynamic metadata support (#124, @jpdelima)
- Add support for
colorize
-ing status code, noexpressFormat
required (#121)
- Make winston a peer dependency.
npm install --save winston
if you haven't already. expressFormat
has no color by default. Addcolorize: true
to express-winston options to enable the previous colorized output. (#86)- Drop support for inherited properties on the object provided to the
baseMeta
option. This is unlikely to actually break anyone's real-world setup.
- Upgrade winston to 1.1 (#114)
- Don't throw exception on invalid JSON in response body (#112)
- Allow custom log level for error logger (#111)
- underscore -> lodash (#88)
- Allow custom status levels (#102)
- Add per-instance equivalents of all global white/blacklists (#105)
- Allow user to override module-level whitelists and functions without having to worry about using the right object reference (#92)
- Add
baseMeta
andmetaField
options (#91) - Document
requestFilter
andresponseFilter
options - Drop support for node 0.6 and 0.8