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 insidelocation
) - An owned copy of
target
- The result of formatting the message (see
LogRecord.args()
).
Fields
level: LogLevel
target: String
msg: String
location: LogLocation