From: Ben Beltran Date: Thu, 22 Jan 2015 05:53:26 +0000 (-0600) Subject: Makes file logger append by default X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/commitdiff_plain/653db94ca15b709e89672aeea9dc4cb9f830cf97?hp=ea6d3aa43284b31d305deaf8bfcae7fc872df1c9 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 () {