5 unstable releases

0.4.1 Aug 19, 2023
0.4.0 Aug 19, 2023
0.3.1 Aug 19, 2023
0.2.0 Aug 17, 2023
0.1.0 Aug 17, 2023

#374 in HTTP server

41 downloads per month

Apache-2.0

36KB
771 lines

actix-logger

drop-in replacement for the default actix web logger middleware

simply changes the log level to Warn on redirection messages and client errors, and Error on server errors.

Example

use actix_web::{App, HttpServer};
use actix_logger::Logger;

#[tokio::main]
async fn main() -> actix_web::Result<()> {
    twink::log::setup();

    HttpServer::new(|| {
        App::new().wrap(Logger::default().service(/* */))
    })
    .bind(("127.0.0.1", 8080))?
    .run()
    .await
}

lib.rs:

For middleware documentation, see Logger.

Dependencies

~17–30MB
~528K SLoC