I was wondering what the best practices are for logging JSON data with rust? I'm building an application that's gathering logs from several other applications' APIs and then shipping the logs to elastisearch. I was going to use fluentbit or vector.dev to ship the logs from this application.
Being able to use JSON will make it easier to tag those logs.
I tried using JSON-env-logher but it seems unmaintained and I get this issue. the trait `ToValue` is not implemented for `std::string::String` · Issue #6 · softprops/json-env-logger · GitHub
What's the simplest/best method for making logging output json