[][src]Function roa::logger::logger

pub async fn logger<'_, '_, S>(
    ctx: &'_ mut Context<S>,
    next: Next<'_>
) -> Result

A middleware to log information about request and response.

Based on crate log, the log level must be greater than INFO to log all information, and should be greater than ERROR when you need error information only.