69template <std::
size_t MaxSinks = 4, std::
size_t MsgBufferCapacity = 256,
typename Mutex = detail::null_mutex>
79 RELOCO_BEGIN_UNSAFE_CODE
bool should_log(level l) const noexcept
Definition logger.hpp:91
Decorator & decorator() &noexcept RELOCO_LIFETIMEBOUND
The message decorator, e.g. to configure a metadata callback.
Definition logger.hpp:214
void log(const log_msg &msg) const noexcept
Dispatches a caller-built log_msg directly to attached sinks.
Definition logger.hpp:101
void dispatch(const Msg &msg) const noexcept
Decorates msg (see Decorator) and hands it to every sink under the logger's lock. Decoration runs bef...
Definition logger.hpp:224
Logger for advanced sinks. Derives from basic_logger, so the whole formatting/level/locking API is in...
Definition extended_logger.hpp:70
RELOCO_BEGIN_UNSAFE_CODE void set_meta_callback(log_meta_callback cb, void *user=nullptr) noexcept
Definition extended_logger.hpp:80
RELOCO_END_UNSAFE_CODE void log(const extended_log_msg &msg) const noexcept
Dispatches a caller-built record with explicit metadata.
Definition extended_logger.hpp:86
Log record extended with execution-context metadata (pid, tid, CPU index, context flags) for "advance...
"Advanced" log sinks that see extended_log_msg metadata and can report being full,...
Configurable structured loggers and helper functions.
Definition default_log_sink.template.hpp:51
log_meta(*)(void *user, const log_msg &msg) noexcept log_meta_callback
Metadata callback: describes the current execution context.
Definition extended_logger.hpp:26
RELOCO_END_UNSAFE_CODE
Definition remote_object.hpp:132
log_msg plus log_meta. Derives from the original record, so it converts to const log_msg & anywhere t...
Definition extended_msg.hpp:62
Structured log record forwarded by a logger to each sink.
Definition log_msg.hpp:69