Fix new line

parent fe7fba5a
......@@ -30,7 +30,7 @@ const logger = {
if (this._loggers.indexOf(this.FILE) >= 0) {
let date = new Date();
let dateStr = date.getFullYear() + '.' + (date.getMonth()+1) + '.' + date.getDate() + '.txt';
fs.appendFile(path.join(this._path, dateStr), date + ' : ' + string + '/n');
fs.appendFile(path.join(this._path, dateStr), date + ' : ' + string + '\n');
}
},
_mongo : function (string) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment