winstonjs/winston
### [`v3.2.1`](https://togithub.com/winstonjs/winston/blob/master/CHANGELOG.md#v321--2019-01-29)
[Compare Source](https://togithub.com/winstonjs/winston/compare/3.2.0...3.2.1)
##### UNBOUND PROTOTYPE AD INFINITUM EDITION
- \#[1579], ([@indexzero](https://togithub.com/indexzero)) Fallback to the "root" instance **always** created by
`createLogger` for level convenience methods (e.g. `.info()`, `.silly()`).
(Fixes [#1577]).
- [#1539], ([@indexzero](https://togithub.com/indexzero)) Assume message is the empty string when level-helper
methods are invoked with no arguments (Fixed [#1501]).
- [#1583], ([@kibertoad](https://togithub.com/kibertoad)) Add typings for defaultMeta (Fixes [#1582])
- [#1586], ([@kibertoad](https://togithub.com/kibertoad)) Update dependencies.
### [`v3.2.0`](https://togithub.com/winstonjs/winston/blob/master/CHANGELOG.md#v320--2019-01-26)
[Compare Source](https://togithub.com/winstonjs/winston/compare/3.1.0...3.2.0)
##### SORRY IT TOO SO LONG EDITION
> **NOTE:** this was our first release using Github Projects. See the
> [3.2.0 Release Project](https://togithub.com/orgs/winstonjs/projects/3).
>
> ##### New Features!
- [#1471], ([@kibertoad](https://togithub.com/kibertoad)) Implement child loggers.
- [#1462], ([@drazisil](https://togithub.com/drazisil)) Add handleRejection support.
- [#1555], ([@DABH](https://togithub.com/DABH)) Add fixes from [#1355] to unhandled rejection handler.
- [#1418], ([@mfrisbey](https://togithub.com/mfrisbey)) Precompile ES6 syntax before publishing to npm.
- [#1533], ([@kibertoad](https://togithub.com/kibertoad)) Update to Babel 7.
- [#1562], ([@indexzero](https://togithub.com/indexzero)) [fix] Better handling of `new Error(string)`
throughout the pipeline(s). (Fixes [#1338], [#1486]).
##### Bug Fixes
- [#1355], ([@DABH](https://togithub.com/DABH)) Fix issues with ExceptionHandler (Fixes [#1289]).
- [#1463], ([@SerayaEryn](https://togithub.com/SerayaEryn)) Bubble transport `warn` events up to logger in
addition to `error`s.
- [#1480], [#1503], ([@SerayaEryn](https://togithub.com/SerayaEryn)) File tailrolling fix.
- [#1483], ([@soldair](https://togithub.com/soldair)) Assign log levels to un-bound functions.
- [#1513], ([@TilaTheHun0](https://togithub.com/TilaTheHun0)) Set maxListeners for Console transport.
- [#1521], ([@jamesbechet](https://togithub.com/jamesbechet)) Fix Transform from `readable-stream` using CRA.
- [#1434], ([@Kouzukii](https://togithub.com/Kouzukii)) Fixes logger.query function (regression from `3.0.0`)
- [#1526], ([@pixtron](https://togithub.com/pixtron)) Log file without .gz for tailable (Fixes [#1525]).
- [#1559], ([@eubnara](https://togithub.com/eubnara)) Fix typo related to `exitOnError`.
- [#1556], ([@adoyle-h](https://togithub.com/adoyle-h)) Support to create log directory if it doesn't exist
for FileTransport.
##### New `splat` behavior
- [#1552], ([@indexzero](https://togithub.com/indexzero)) Consistent handling of meta with (and without)
interpolation in `winston` and `logform`.
- [#1499], ([@DABH](https://togithub.com/DABH)) Provide all of `SPLAT` to formats (Fixes [#1485]).
- [#1485], ([@mpabst](https://togithub.com/mpabst)) Fixing off-by-one when using both meta and splat.
Previously `splat` would have added a `meta` property for any additional
`info[SPLAT]` beyond the expected number of tokens.
**As of `logform@2.0.0`,** `format.splat` assumes additional splat paramters
(aka "metas") are objects and merges enumerable properties into the `info`.
e.g. **BE ADVISED** previous "metas" that _were not objects_ will very likely
lead to odd behavior. e.g.
```js
const { createLogger, format, transports } = require('winston');
const { splat } = format;
const { MESSAGE, LEVEL, SPLAT } = require('triple-beam');
const logger = createLogger({
format: format.combine(
format.splat(),
format.json()
),
transports: [new transports.Console()]
});
// Expects two tokens, but four splat parameters provided.
logger.info(
'Let us %s for %j', // message
'objects', // used for %s
{ label: 'sure' }, // used for %j
'lol', ['ok', 'why'] // Multiple additional meta values
);
// winston < 3.2.0 && logform@1.x behavior:
// Added "meta" property.
//
// { level: 'info',
// message: 'Let us objects for {"label":"sure"}',
// meta: ['lol', ['ok', 'why']],
// [Symbol(level)]: 'info',
// [Symbol(message)]: 'Let us %s for %j',
// [Symbol(splat)]: [ 'objects', { label: 'sure' } ] }
// winston >= 3.2.0 && logform@2.x behavior: Enumerable properties
// assigned into `info`. Since **strings and Arrays only have NUMERIC
// enumerable properties we get this behavior!**
//
// { '0': 'ok',
// '1': 'why',
// '2': 'l',
// level: 'info',
// message: 'Let us objects for {"label":"sure"}',
// [Symbol(level)]: 'info',
// [Symbol(message)]: 'Let us %s for %j',
// [Symbol(splat)]: [ 'objects', { label: 'sure' } ] }
```
Renovate configuration
:date: Schedule: "after 10pm,before 5am" (UTC).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot. View repository job log here.
This PR contains the following updates:
3.1.0
->3.2.1
Release Notes
winstonjs/winston
### [`v3.2.1`](https://togithub.com/winstonjs/winston/blob/master/CHANGELOG.md#v321--2019-01-29) [Compare Source](https://togithub.com/winstonjs/winston/compare/3.2.0...3.2.1) ##### UNBOUND PROTOTYPE AD INFINITUM EDITION - \#[1579], ([@indexzero](https://togithub.com/indexzero)) Fallback to the "root" instance **always** created by `createLogger` for level convenience methods (e.g. `.info()`, `.silly()`). (Fixes [#1577]). - [#1539], ([@indexzero](https://togithub.com/indexzero)) Assume message is the empty string when level-helper methods are invoked with no arguments (Fixed [#1501]). - [#1583], ([@kibertoad](https://togithub.com/kibertoad)) Add typings for defaultMeta (Fixes [#1582]) - [#1586], ([@kibertoad](https://togithub.com/kibertoad)) Update dependencies. ### [`v3.2.0`](https://togithub.com/winstonjs/winston/blob/master/CHANGELOG.md#v320--2019-01-26) [Compare Source](https://togithub.com/winstonjs/winston/compare/3.1.0...3.2.0) ##### SORRY IT TOO SO LONG EDITION > **NOTE:** this was our first release using Github Projects. See the > [3.2.0 Release Project](https://togithub.com/orgs/winstonjs/projects/3). > > ##### New Features! - [#1471], ([@kibertoad](https://togithub.com/kibertoad)) Implement child loggers. - [#1462], ([@drazisil](https://togithub.com/drazisil)) Add handleRejection support. - [#1555], ([@DABH](https://togithub.com/DABH)) Add fixes from [#1355] to unhandled rejection handler. - [#1418], ([@mfrisbey](https://togithub.com/mfrisbey)) Precompile ES6 syntax before publishing to npm. - [#1533], ([@kibertoad](https://togithub.com/kibertoad)) Update to Babel 7. - [#1562], ([@indexzero](https://togithub.com/indexzero)) [fix] Better handling of `new Error(string)` throughout the pipeline(s). (Fixes [#1338], [#1486]). ##### Bug Fixes - [#1355], ([@DABH](https://togithub.com/DABH)) Fix issues with ExceptionHandler (Fixes [#1289]). - [#1463], ([@SerayaEryn](https://togithub.com/SerayaEryn)) Bubble transport `warn` events up to logger in addition to `error`s. - [#1480], [#1503], ([@SerayaEryn](https://togithub.com/SerayaEryn)) File tailrolling fix. - [#1483], ([@soldair](https://togithub.com/soldair)) Assign log levels to un-bound functions. - [#1513], ([@TilaTheHun0](https://togithub.com/TilaTheHun0)) Set maxListeners for Console transport. - [#1521], ([@jamesbechet](https://togithub.com/jamesbechet)) Fix Transform from `readable-stream` using CRA. - [#1434], ([@Kouzukii](https://togithub.com/Kouzukii)) Fixes logger.query function (regression from `3.0.0`) - [#1526], ([@pixtron](https://togithub.com/pixtron)) Log file without .gz for tailable (Fixes [#1525]). - [#1559], ([@eubnara](https://togithub.com/eubnara)) Fix typo related to `exitOnError`. - [#1556], ([@adoyle-h](https://togithub.com/adoyle-h)) Support to create log directory if it doesn't exist for FileTransport. ##### New `splat` behavior - [#1552], ([@indexzero](https://togithub.com/indexzero)) Consistent handling of meta with (and without) interpolation in `winston` and `logform`. - [#1499], ([@DABH](https://togithub.com/DABH)) Provide all of `SPLAT` to formats (Fixes [#1485]). - [#1485], ([@mpabst](https://togithub.com/mpabst)) Fixing off-by-one when using both meta and splat. Previously `splat` would have added a `meta` property for any additional `info[SPLAT]` beyond the expected number of tokens. **As of `logform@2.0.0`,** `format.splat` assumes additional splat paramters (aka "metas") are objects and merges enumerable properties into the `info`. e.g. **BE ADVISED** previous "metas" that _were not objects_ will very likely lead to odd behavior. e.g. ```js const { createLogger, format, transports } = require('winston'); const { splat } = format; const { MESSAGE, LEVEL, SPLAT } = require('triple-beam'); const logger = createLogger({ format: format.combine( format.splat(), format.json() ), transports: [new transports.Console()] }); // Expects two tokens, but four splat parameters provided. logger.info( 'Let us %s for %j', // message 'objects', // used for %s { label: 'sure' }, // used for %j 'lol', ['ok', 'why'] // Multiple additional meta values ); // winston < 3.2.0 && logform@1.x behavior: // Added "meta" property. // // { level: 'info', // message: 'Let us objects for {"label":"sure"}', // meta: ['lol', ['ok', 'why']], // [Symbol(level)]: 'info', // [Symbol(message)]: 'Let us %s for %j', // [Symbol(splat)]: [ 'objects', { label: 'sure' } ] } // winston >= 3.2.0 && logform@2.x behavior: Enumerable properties // assigned into `info`. Since **strings and Arrays only have NUMERIC // enumerable properties we get this behavior!** // // { '0': 'ok', // '1': 'why', // '2': 'l', // level: 'info', // message: 'Let us objects for {"label":"sure"}', // [Symbol(level)]: 'info', // [Symbol(message)]: 'Let us %s for %j', // [Symbol(splat)]: [ 'objects', { label: 'sure' } ] } ```Renovate configuration
:date: Schedule: "after 10pm,before 5am" (UTC).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "
rebase!
".:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.