util::log::Entry

A single log message together with its metadata.

Synopsis

Declared in <util/log.h>

struct Entry;

Data Members

NameDescription
category Category the message belongs to.
level Severity level of the message.
message The formatted log message text.
mocktime Current mock time, or zero when unset.
should_ratelimit Hint for consumers if this entry should be ratelimited
source_loc Source location the message was logged from.
thread_name Internal name of the originating thread.
timestamp Wall-clock time the entry was created.

Non-Member Functions

NameDescription
LogSend message to be logged. Applications using the logging library need to provide this.