headscale
headscale copied to clipboard
Toggle JSON logging
Feature request
Allow to opt-in for JSON logs so they can be easily parsed. I think the implementation is pretty straightforward, and I can get it done over the weekend.
I suppose the implementation could be something like that: https://github.com/juanfont/headscale/compare/main...kazauwa:feature/json-logs?expand=1
Setting json_logs
to true
swtiches to default zerolog formatting:
{"level":"info","path":"/var/lib/headscale/private.key","time":1655553834,"message":"No private key file at path, creating..."}
this seems useful, would you mind creating a pull request?
Done Didn't want to create a PR before hearing from maintainers
not a maintainer, just keen on this feature :)
Merged https://github.com/juanfont/headscale/pull/768