attach metadata to logger
haircommander opened this issue · comments
the rust logger allows us to attach metadata. it would be useful to track different messages based on container id, or pid if that's not possible, so we know which container did what
I don't think we have a ctx like structure but having something like that would be sweet so we don't have to think about attaching the right information
Are you thinking to use something like slog: https://docs.rs/slog/latest/slog/?
yeah that looks cool, though would that mean we need to store a logger per container to sneak in the container ID per request. I'm not sure what the overhead of that would be. I a;so may be interpreting the docs wrong
Hm looks like that https://docs.rs/tracing/latest/tracing is the new de-facto standard.