From: Ben Beltran Date: Thu, 22 Jan 2015 05:53:26 +0000 (-0600) Subject: Makes file logger append by default X-Git-Tag: v1.1.0~4 X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/commitdiff_plain/54a5290bbcae03d129dd21401a4dae98d0aef775?hp=97a7ece70e89b973468b62e1775a33762a37258e Makes file logger append by default --- diff --git a/lib/loggers/file.js b/lib/loggers/file.js index 5ba8a17..0d60acd 100644 --- a/lib/loggers/file.js +++ b/lib/loggers/file.js @@ -12,7 +12,7 @@ Class(Cobalt.Logger, 'File')({ } } - this._stream = fs.createWriteStream(this.file); + this._stream = fs.createWriteStream(this.file, {flags: 'a'}); }, log : function () {