I want to create a simple Log System, which prints a line before the past line into a txt file by using Node.js, but i dont know how the File System from Node.js works. Can
Simply use fs module and something like this:
fs
fs.appendFile('server.log', 'string to append', function (err) { if (err) return console.log(err); console.log('Appended!'); });