Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent handling of meta with (and without) interpolation in winston & logform #1552

Merged
merged 5 commits into from
Dec 26, 2018

Conversation

indexzero
Copy link
Member

See the logform@2.0.0 CHANGELOG for more details. TL;DR? Handling of "meta" is now consistent between logform and winston meaning that any meta (i.e. additional SPLAT parameters beyond the number of string interpolation tokens in the message provided) will be Object.assign into the info created by .log.

Related: #1485, #1499, winstonjs/logform#57, winstonjs/logform#67

Copy link
Contributor

@DABH DABH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, discussed 1-1 and agreed on new consistent behavior

@indexzero indexzero merged commit 44e178f into master Dec 26, 2018
@indexzero indexzero deleted the splat-meta-all branch December 26, 2018 20:18
Mizumaki pushed a commit to Mizumaki/winston that referenced this pull request Jun 11, 2020
…on & logform (winstonjs#1552)

* [doc fix] Build on the work from winstonjs#1485 fixes.

* [tiny] Formatting changes.

* [fix test] Updated tests to latest (consistent) semantics.

* [dist] Update to `logform@2.0.0` and `winston-transport@4.3.0`.

* [doc] Document all possible permuations for splat.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants