mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 09:42:40 +01:00
Merge pull request #412 from gdamjan/master
remove the timestamp from the default logger middleware
This commit is contained in:
commit
b9586b3f71
@ -9,6 +9,7 @@
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* Fixed default_resource 'not yet implemented' panic #410
|
* Fixed default_resource 'not yet implemented' panic #410
|
||||||
|
* removed the timestamp from the default logger middleware
|
||||||
|
|
||||||
* Add `CookieSessionBackend::http_only` method to set `HttpOnly` directive of cookies
|
* Add `CookieSessionBackend::http_only` method to set `HttpOnly` directive of cookies
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ use middleware::{Finished, Middleware, Started};
|
|||||||
/// default format:
|
/// default format:
|
||||||
///
|
///
|
||||||
/// ```ignore
|
/// ```ignore
|
||||||
/// %a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T
|
/// %a "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T
|
||||||
/// ```
|
/// ```
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # extern crate actix_web;
|
/// # extern crate actix_web;
|
||||||
@ -94,7 +94,7 @@ impl Default for Logger {
|
|||||||
/// Create `Logger` middleware with format:
|
/// Create `Logger` middleware with format:
|
||||||
///
|
///
|
||||||
/// ```ignore
|
/// ```ignore
|
||||||
/// %a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T
|
/// %a "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T
|
||||||
/// ```
|
/// ```
|
||||||
fn default() -> Logger {
|
fn default() -> Logger {
|
||||||
Logger {
|
Logger {
|
||||||
@ -143,7 +143,7 @@ struct Format(Vec<FormatText>);
|
|||||||
impl Default for Format {
|
impl Default for Format {
|
||||||
/// Return the default formatting style for the `Logger`:
|
/// Return the default formatting style for the `Logger`:
|
||||||
fn default() -> Format {
|
fn default() -> Format {
|
||||||
Format::new(r#"%a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T"#)
|
Format::new(r#"%a "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T"#)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user