From f2520d2d79391ffc06f60e0e664fd33058bf02e9 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 10 Nov 2017 13:34:16 -0800 Subject: [PATCH] update logger doc --- src/middlewares/logger.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/middlewares/logger.rs b/src/middlewares/logger.rs index 8131d72e3..9b2e9a627 100644 --- a/src/middlewares/logger.rs +++ b/src/middlewares/logger.rs @@ -19,7 +19,7 @@ use middlewares::{Middleware, Started, Finished}; /// Default `Logger` could be created with `default` method, it uses the default format: /// /// ```ignore -/// %a %t "%r" %s %b "%{Referrer}i" "%{User-Agent}i %T" +/// %a %t "%r" %s %b "%{Referrer}i" "%{User-Agent}i" %T /// ``` /// ```rust,ignore /// @@ -67,7 +67,11 @@ impl Logger { } impl Default for Logger { - /// Create default `Logger` middleware + /// Create `Logger` middleware with format: + /// + /// ```ignore + /// %a %t "%r" %s %b "%{Referrer}i" "%{User-Agent}i" %T + /// ``` fn default() -> Logger { Logger { format: Format::default() } } @@ -171,10 +175,6 @@ struct Format(Vec); impl Default for Format { /// Return the default formatting style for the `Logger`: - /// - /// ```ignore - /// %a %t "%r" %s %b "%{Referrer}i" "%{User-Agent}i %T" - /// ``` fn default() -> Format { Format::new(r#"%a %t "%r" %s %b "%{Referrer}i" "%{User-Agent}i" %T"#) }