Permalink
Browse files

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

…constructor function
  • Loading branch information...
1 parent 87e3c68 commit 437eff64b1e7756cda2f63b0e0273f6930082190 @indexzero indexzero committed Jul 24, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/winston/logger.js
View
1 lib/winston/logger.js
@@ -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;
});
}

0 comments on commit 437eff6

Please sign in to comment.