actix-logger

Crates.ioactix-logger
lib.rsactix-logger
version0.4.1
sourcesrc
created_at2023-08-17 12:35:22.40637
updated_at2023-08-19 21:37:03.24947
descriptiondrop-in replacement for the actix web logger middleware
homepagehttps://codeberg.org/fawn/actix-logger
repositoryhttps://codeberg.org/fawn/actix-logger
max_upload_size
id946947
size47,143
fawn (fawni)

documentation

README

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
}
Commit count: 0

cargo fmt