feat(audit): change audit log format from plain to json
This patch changes the way audit records are formatted. Previously we would format them as plain strings (we still do that in tlog), now we use json to store all KV pairs including the message. TODO: optimize string allocations using a stream formatter. Example: ``` { "time": "2023-11-16T22:48:08.297+0300", "level": "WARN", "auth_type": "chap-sha1", "message": "created user `idris`", "title": "create_user", "pid": 66625, "cord_name": "main", "fiber_id": 111, "fiber_name": "raft_main_loop", "file": "src/storage.rs", "line": 2633 } ```
parent
c42d0ba3
No related branches found
No related tags found
Please register or sign in to comment