Tracing or logging in Shuttle apps.
stdout
and stderr
.
--latest
or -l
flag will get the logs from the most recently created deployment:
shuttle-runtime
:
tracing
as a dependency in your Cargo.toml
, and you’re good to go!
log
macros
in your project is add it to your Cargo.toml
.
env_filter
which defaults to the INFO
log level if no RUST_LOG
variable is set.
You can change the log level for local runs with RUST_LOG="..." shuttle run
or shuttle run --debug
.
Deployments use RUST_LOG="info"
, and this is not configurable at the moment. A custom subscriber can be set up instead.
stdout
, as this is what Shuttle will record and return from
the shuttle logs
commands.
We’ve created an example Actix Web app with a simple tracing
: custom tracing example.