riju icon indicating copy to clipboard operation
riju copied to clipboard

Make server logs more parseable

Open raxod502 opened this issue 3 years ago • 2 comments

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.

raxod502 avatar Aug 30 '21 02:08 raxod502

Where is the log function?

hello-smile6 avatar Feb 05 '22 22:02 hello-smile6

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

raxod502 avatar Feb 10 '22 00:02 raxod502