Related ENG-2308
Similar to identity service, I introduced the tracing library here. I enhanced its configuration to take level filter from environment variables. It defaults to INFO everywhere, what corresponds to the identity service behavior.
Default environment variable name is RUST_LOG but it can be changed if needed.
A few examples:
- cargo run - (default) showing INFO logs and higher (warn/error)
- RUST_LOG=debug - showing DEBUG+, includes dependencies (e.g. AWS logs)
- RUST_LOG=blob=trace - showing TRACE+ logs for the blob service, INFO+ for dependencies
Depends on D5728
Adding @ashoat as this introduces a new dependency (already used in identity service though).