Constant std_logger::REQUEST_TARGET [] [src]

pub const REQUEST_TARGET: &'static str = "request"

The log target to use when logging requests. Using this as a target the message will be logged to standard out.

#[macro_use]
extern crate log;
extern crate std_logger;

use std_logger::REQUEST_TARGET;

// In for example a HTTP handler.
info!(target: REQUEST_TARGET, "url = {}, status = {}, response_time = {}",
    url, status, response_time);