Struct ulog::LogMessage [] [src]

pub struct LogMessage {
    pub level: LogLevel,
    pub target: String,
    pub msg: String,
    pub location: LogLocation,
}

A log entry

The LogMessage struct copies most interesting fields from a log::LogRecord, allowing owned versions of these to be passed around.

Any time a LogMessage is constructed, the following allocations need to be made:

  • Four pointer-sized fields (level, as well as three inside location)
  • An owned copy of target
  • The result of formatting the message (see LogRecord.args()).

Fields

Trait Implementations

impl Debug for LogMessage
[src]

Formats the value using the given formatter.

impl Display for LogMessage
[src]

Formats the value using the given formatter. Read more