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