diff options
| author | Ben Beltran <ben@nsovocal.com> | 2015-01-21 23:53:26 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2015-01-21 23:53:26 -0600 |
| commit | 54a5290bbcae03d129dd21401a4dae98d0aef775 (patch) | |
| tree | 31bf01949dc9a9d44852bd41f279cf1c021624ac /lib | |
| parent | 97a7ece70e89b973468b62e1775a33762a37258e (diff) | |
Makes file logger append by default
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/loggers/file.js | 2 |
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 () { |