]> git.r.bdr.sh - rbdr/cologne/commitdiff
Makes file logger append by default
authorBen Beltran <redacted>
Thu, 22 Jan 2015 05:53:26 +0000 (23:53 -0600)
committerBen Beltran <redacted>
Thu, 22 Jan 2015 05:53:26 +0000 (23:53 -0600)
lib/loggers/file.js

index 5ba8a179bd828f63df12d2f458f00ca2868fc274..0d60acd148c28b46377170e8e2c5bdff3536a643 100644 (file)
@@ -12,7 +12,7 @@ Class(Cobalt.Logger, 'File')({
         }
       }
 
         }
       }
 
-      this._stream = fs.createWriteStream(this.file);
+      this._stream = fs.createWriteStream(this.file, {flags: 'a'});
     },
 
     log : function () {
     },
 
     log : function () {