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

winston@2.x #732

Merged
merged 20 commits into from
Oct 30, 2015
Merged

winston@2.x #732

merged 20 commits into from
Oct 30, 2015

Conversation

indexzero
Copy link
Member

⚠️ this is a tracking issue for the upcoming winston@2.0.0 release. Do not merge.

Breaking changes

Most important

function filter (level, msg, meta, inst) {
  // Filter logic goes here...
}

Other breaking changes

  • e0c9dde Remove winston.transports.Webhook. Use winston.transports.Http instead.
  • f71e638 Remove Logger.prototype.addRewriter and Logger.prototype.addFilter since they just push to an Array of functions. Use logger.filters.push or logger.rewriters.push explicitly instead.
  • a470ab5 No longer respect the handleExceptions option to new winston.Logger. Instead just pass in the exceptionHandlers option itself.
  • 8cb7048 Removed Logger.prototype.extend functionality

New features

  • 3aa990c Added Logger.prototype.configure which now contains all logic previously in the winston.Logger constructor function. (indexzero)
  • #726 Update .npmignore (coreybutler)
  • #700 Add an eol option to the Console transport. (aquavitae)
  • #731 Update lib/transports.js for better static analysis. (indexzero)

Fixes, refactoring, and optimizations. OH MY!

  • #632 Allow File transport to be an objectMode writable stream. (stambata)
  • #527, 163f4f9, 3747ccf Performance optimizations and string interpolation edge cases (indexzero)
  • f0edafd Code cleanup for reability, ad-hoc styleguide enforcement (indexzero)

indexzero and others added 19 commits October 29, 2015 16:17
… `.addFilter` since they are just simple Arrays of functions.
[breaking] No longer respect the `handleExceptions` option to `new winston.Logger`. Instead
just pass in the `exceptionHandlers` option itself.
…all logic previously in the `winston.Logger` constructor function.

[api] `winston.Logger` constructor function and `Logger.prototype.configure` set filters in addition to rewriters.
…onsistent with `rewriter` and log functions.
… or "meta" objects based on the occurance of the format expressions in the base message to be logged.
…t to be consistent with the `File` transport.
indexzero added a commit that referenced this pull request Oct 30, 2015
@indexzero indexzero merged commit c41e193 into master Oct 30, 2015
@indexzero indexzero deleted the 2.x branch October 30, 2015 01:25
cjbarth pushed a commit to cjbarth/winston that referenced this pull request Feb 29, 2016
cjbarth pushed a commit to cjbarth/winston that referenced this pull request Feb 29, 2016
cjbarth pushed a commit to cjbarth/winston that referenced this pull request Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants