Skip to content

Commit

Permalink
Allow custom exception level
Browse files Browse the repository at this point in the history
  • Loading branch information
jupiter committed May 11, 2013
1 parent 6cf229d commit ff187f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/winston/transports/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var Transport = exports.Transport = function (options) {
this.name = options.name || this.name;

this.handleExceptions = options.handleExceptions || false;
this.exceptionsLevel = options.exceptionsLevel || 'error';
};

//
Expand Down Expand Up @@ -117,5 +118,5 @@ Transport.prototype.logException = function (msg, meta, callback) {

this.once('logged', onLogged);
this.once('error', onError);
this.log('error', msg, meta, function () { });
this.log(self.exceptionsLevel, msg, meta, function () { });
};

0 comments on commit ff187f4

Please sign in to comment.