[SOLVED] Option to log with nanoseconds

Using tools like Grafanas Promtail/Loki to read the log, it drops most entries because there is multiple entries with the same timestamp. Adding nanoseconds to the log would solve this, if they aren’t actually logged at the same nanosecond too.

https://github.com/dani-garcia/bitwarden_rs/pull/1067 should handle this use case once it’s merged. Logging with ns resolution is overkill for the vast majority of users, but you could use a format string like %Y-%m-%d %H:%M:%S.%9f if you really want that.

I agree. But im not like most people :slight_smile:
Currently working on aggregating all my logs with Loki