aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2015-01-21 23:53:26 -0600
committerBen Beltran <ben@nsovocal.com>2015-01-21 23:53:26 -0600
commit653db94ca15b709e89672aeea9dc4cb9f830cf97 (patch)
tree325e411697a3ea5b85cf0ecabbe39dcbf3c1d52d /lib
parentea6d3aa43284b31d305deaf8bfcae7fc872df1c9 (diff)
Makes file logger append by default
Diffstat (limited to 'lib')
-rw-r--r--lib/loggers/file.js2
1 files changed, 1 insertions, 1 deletions
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 () {