fn log_request<'mw>(req: &mut Request<Config>, res: Response<'mw, Config>) -> MiddlewareResult<'mw, Config> {
    println!(
        "[DEBUG] {} {} {}",
        Utc::now().format("%b %e %T"),
        req.origin.method,
        req.origin.uri
    );
    res.next_middleware()
}
// Logger middleware function: Once attached to the server this log every request details
// TODO: Add more information in each request
Logger middleware function: Once attached to the server this log every request details
TODO: Add more information in each request
Logger middleware function : Once attached to the server this log every request details TODO : Add more information in each request
fn log_request<'mw>(req: &mut Request<Config>, res: Response<'mw, Config>) -> MiddlewareResult<'mw, Config> {
    println!(
        "[DEBUG] {} {} {}",
        Utc::now().format("%b %e %T"),
        req.origin.method,
        req.origin.uri
    );
    res.next_middleware()
}
fn log_request < ' mw > ( req : & mut Request < Config > , res : Response < ' mw , Config > ) -> MiddlewareResult < ' mw , Config > { println ! ( " " Utc now ( ) format ( " " ) req origin method req origin uri ) ; res . next_middleware ( ) }
Logger middleware function: Once attached to the server this log every request details
TODO: Add more information in each request
Logger middleware function : Once attached to the server this log every request details TODO : Add more information in each request
req
&mut Request<Config>
res
Response<'mw, Config>