Logging from settings.js to file

Hi, how do i log the information to a file by changing the settings.js? I guess i have to copy the console logger and then change the handler. I only dont know how this should look.

    console: {
        level: "info",
        metrics: false,
        audit: false
    },
  file: {
        level: "info",
        metrics: false,
        handler: ??
    }
},

There is no built-in handler for logging to a file. You'd have to write one yourself.

It is much easier to just redirect the current output of Node-RED to a file.