While developing a userscript for tampermonkey, how can I have it write logs to local files on my machine?
I want the userscript to run when visiting a website, e.g. stackoverflow.com, then I want the running userscript to store its logs permanently (e.g. in a file on my disk) instead of in the browser console that only lasts as long as the tab does.
4