Skip to content

Commit 70d4861

Browse files
afmeirellesmattberther
authored andcommitted
added logstash formatting option (#51)
1 parent 5865bf2 commit 70d4861

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ var DailyRotateFile = module.exports = function (options) {
6666
this.json = options.json !== false;
6767
this.colorize = options.colorize || false;
6868
this.maxsize = options.maxsize || null;
69+
this.logstash = options.logstash || null;
6970
this.maxFiles = options.maxFiles || null;
7071
this.label = options.label || null;
7172
this.prettyPrint = options.prettyPrint || false;
@@ -176,6 +177,7 @@ DailyRotateFile.prototype.log = function (level, msg, meta, callback) {
176177
meta: meta,
177178
json: this.json,
178179
colorize: this.colorize,
180+
logstash: this.logstash,
179181
prettyPrint: this.prettyPrint,
180182
timestamp: this.timestamp,
181183
label: this.label,

0 commit comments

Comments
 (0)