[−][src]Crate actix_slog
structured request logging middleware
use actix_web::{HttpServer, App}; use actix_slog::StructuredLogger; use slog::o; let logger: slog::Logger = unimplemented!(); let server = HttpServer::new(move || { App::new() .wrap( StructuredLogger::new(logger.new(o!("log_type" => "access"))), ) }) .bind("[::1]:8080");
Structs
StreamLog | |
StructuredLogger | global configuration/builder for the log middleware |
StructuredLoggerMiddleware | Logger middleware |