#logging #actix-web

actix-logger

drop-in replacement for the actix web logger middleware

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

#2019 in HTTP server

Download history 1/week @ 2025-06-04 4/week @ 2025-07-02 8/week @ 2025-07-09 6/week @ 2025-07-16 13/week @ 2025-08-13 15/week @ 2025-08-20 13/week @ 2025-08-27 15/week @ 2025-09-03

56 downloads per month
Used in tamako

Apache-2.0

36KB
771 lines

For middleware documentation, see Logger.


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
}

Dependencies

~17–30MB
~495K SLoC