Struct log::LogRecord [-]  [+] [src]

pub struct LogRecord<'a> {
    pub module_path: &'a str,
    pub level: LogLevel,
    pub args: Arguments<'a>,
    pub file: &'a str,
    pub line: usize,
}

A LogRecord is created by the logging macros, and passed as the only argument to Loggers.

Fields

module_path

The module path of where the LogRecord originated.

level

The LogLevel of this record.

args

The arguments from the log line.

file

The file of where the LogRecord originated.

line

The line number of where the LogRecord originated.

Trait Implementations

Derived Implementations

impl<'a> Show for LogRecord<'a>

fn fmt(&self, __arg_0: &mut Formatter) -> Result