Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] Set `._names` from initial list of transports passed to Logger …

…constructor function
  • Loading branch information...
commit 437eff64b1e7756cda2f63b0e0273f6930082190 1 parent 87e3c68
Charlie Robbins indexzero authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/winston/logger.js
1  lib/winston/logger.js
View
@@ -50,6 +50,7 @@ var Logger = exports.Logger = function (options) {
if (options.transports) {
options.transports.forEach(function (transport) {
+ self._names.push(transport.name);
self.transports[transport.name] = transport;
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.