Struct logger::Format [] [src]

pub struct Format(_);

A formatting style for the Logger, consisting of multiple FormatTexts concatenated into one line.

Methods

impl Format
[src]

[src]

Create a Format from a format string, which can contain the fields {method}, {uri}, {status}, {response-time}, {ip-addr} and {request-time}.

Returns None if the format string syntax is incorrect.

Trait Implementations

impl Clone for Format
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Format
[src]

[src]

Return the default formatting style for the Logger:

Be careful when using this code, it's not being tested!
{method} {uri} -> {status} ({response-time})
// This will be written as: {method} {uri} -> {status} ({response-time})