Looks like `fs.appendFile` does call `fs.writeFile`, which opens and closes the file on each write, and this can potentially be costly operation for heavy logging