Skip to main content

logger

Function logger 

Source
pub async fn logger(req: Request<Body>, next: Next) -> Response<Body>
Expand description

Middleware logger — mencatat setiap HTTP request ke terminal dengan warna.

Format: [METHOD] /path → STATUS (ms)