1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 00:50:20 +02:00

add Logger::log_target (#2594)

This commit is contained in:
Rob Ede
2022-01-21 17:18:39 +00:00
parent ae7f71e317
commit cb7347216c
3 changed files with 43 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ async fn main() -> std::io::Result<()> {
App::new()
.wrap(middleware::DefaultHeaders::new().add(("X-Version", "0.2")))
.wrap(middleware::Compress::default())
.wrap(middleware::Logger::default().log_target("1234"))
.wrap(middleware::Logger::default().log_target("http_log"))
.service(index)
.service(no_params)
.service(