From 653db94ca15b709e89672aeea9dc4cb9f830cf97 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Wed, 21 Jan 2015 23:53:26 -0600 Subject: Makes file logger append by default --- lib/loggers/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 () { -- cgit