An example axum server that serves a live stream of its own tracing log to an HTML page using Hotwire Turbo Streams.
2023-06-04.00-48-22.mp4
A .env
file should be at the root of the directory. Leave the default or
change them to your desired values:
RUST_LOG=axum_log_stream=debug,tower_http=debug
HOST=127.0.0.1
PORT=3000
TITLE=axum-log-stream
MAX_MEM_LOG_SIZE=1000000
cargo run