riju
riju copied to clipboard
Make server logs more parseable
Currently the webserver doesn't log in any particular format, it just vomits stuff onto stdout in whatever format I was thinking at the time I wrote the console.log
. We should log using an actual logging framework (maybe use logfmt output format?) and include some information such as client IP address in the logs, so that this stuff can be parsed out by Loki.
Where is the log function?
You're probably looking for https://github.com/raxod502/riju/blob/bb3a61a5cf99af84e75286d79017ed142dec1989/backend/util.js#L17-L22 and https://github.com/raxod502/riju/blob/bb3a61a5cf99af84e75286d79017ed142dec1989/backend/util.js#L131-L137