Changeset View
Changeset View
Standalone View
Standalone View
support/aphlict/server/lib/AphlictLog.js
| Show All 14 Lines | members: { | ||||
| addLogfile: function(path) { | addLogfile: function(path) { | ||||
| var options = { | var options = { | ||||
| flags: 'a', | flags: 'a', | ||||
| encoding: 'utf8', | encoding: 'utf8', | ||||
| mode: 066 | mode: 066 | ||||
| }; | }; | ||||
| var logfile = fs.createWriteSteam(path, options); | var logfile = fs.createWriteStream(path, options); | ||||
| this._writeToLogs.push(logfile); | this._writeToLogs.push(logfile); | ||||
| return this; | return this; | ||||
| }, | }, | ||||
| addConsole: function(console) { | addConsole: function(console) { | ||||
| this._writeToConsoles.push(console); | this._writeToConsoles.push(console); | ||||
| Show All 21 Lines | |||||