pub fn header(header_name: &'static str) -> impl LogFormatter
Expand description

formatter-builder for a particular header, formatted wrapped in quotes. "" if the header is not present

usage:

Logger::new().with_formatter(("user-agent: ", header("user-agent")));

note: this is not a formatter itself, but returns a formatter when called with a header name