Skip to content

Commit

Permalink
Add label option for DailyRotateFile transport
Browse files Browse the repository at this point in the history
This option is missing from this transport but available in the others
  • Loading branch information
francoisTemasys authored and indexzero committed Oct 6, 2014
1 parent 3667363 commit 51d3cad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/winston/transports/daily-rotate-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ var DailyRotateFile = exports.DailyRotateFile = function (options) {
this.colorize = options.colorize || false;
this.maxsize = options.maxsize || null;
this.maxFiles = options.maxFiles || null;
this.label = options.label || null;
this.prettyPrint = options.prettyPrint || false;
this.timestamp = options.timestamp != null ? options.timestamp : true;
this.datePattern = options.datePattern != null ? options.datePattern : '.yyyy-MM-dd';
Expand Down Expand Up @@ -154,6 +155,7 @@ DailyRotateFile.prototype.log = function (level, msg, meta, callback) {
colorize: this.colorize,
prettyPrint: this.prettyPrint,
timestamp: this.timestamp,
label: this.label,
stringify: this.stringify
}) + '\n';

Expand Down

0 comments on commit 51d3cad

Please sign in to comment.