0ad871772ef0666d7400d378cbe8a2127f3a7db1
axum-log-stream
An example axum server that serves a page with a live stream of the server's tracing log.
Setup
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
Running
cargo run
Description
An example axum server that serves a live stream of its own tracing log to an HTML page
Languages
Rust
100%