|
| RELOCO_BEGIN_UNSAFE_CODE void | set_meta_callback (log_meta_callback cb, void *user=nullptr) noexcept |
| |
| RELOCO_END_UNSAFE_CODE void | log (const extended_log_msg &msg) const noexcept |
| | Dispatches a caller-built record with explicit metadata.
|
| |
| void | log (const log_msg &msg) const noexcept |
| | Dispatches a caller-built log_msg directly to attached sinks.
|
| |
| template<typename... Args> |
| void | log (level lvl, microfmt::string_view fmt_str, const Args &...args) const noexcept |
| |
| template<typename StrProvider , typename... Args> |
| void | log (level lvl, compile_string_holder< StrProvider > fmt_str, const Args &...args) const noexcept |
| |
| constexpr | basic_logger (microfmt::string_view name) noexcept |
| |
template<typename... Sinks>
requires (sizeof...(Sinks) <= MaxSinks) |
| constexpr | basic_logger (microfmt::string_view name, Sinks... sinks) noexcept |
| |
| bool | add_sink (Sink s) noexcept |
| |
| void | set_level (level l) noexcept |
| |
| constexpr level | get_level () const noexcept |
| |
| constexpr microfmt::string_view | name () const &noexcept RELOCO_LIFETIMEBOUND |
| |
| constexpr microfmt::string_view | name () const &&=delete |
| |
| bool | should_log (level l) const noexcept |
| |
| void | log (const log_msg &msg) const noexcept |
| | Dispatches a caller-built log_msg directly to attached sinks.
|
| |
| template<typename... Args> |
| void | log (level lvl, microfmt::string_view fmt_str, const Args &...args) const noexcept |
| |
| template<typename StrProvider , typename... Args> |
| void | log (level lvl, compile_string_holder< StrProvider > fmt_str, const Args &...args) const noexcept |
| |
| template<typename... Args> |
| void | trace (microfmt::string_view fmt, const Args &...args) const noexcept |
| |
| template<typename StrProvider , typename... Args> |
| void | trace (compile_string_holder< StrProvider > fmt, const Args &...args) const noexcept |
| |
| template<typename... Args> |
| void | debug (microfmt::string_view fmt, const Args &...args) const noexcept |
| |
| template<typename StrProvider , typename... Args> |
| void | debug (compile_string_holder< StrProvider > fmt, const Args &...args) const noexcept |
| |
| template<typename... Args> |
| void | info (microfmt::string_view fmt, const Args &...args) const noexcept |
| |
| template<typename StrProvider , typename... Args> |
| void | info (compile_string_holder< StrProvider > fmt, const Args &...args) const noexcept |
| |
| template<typename... Args> |
| void | warn (microfmt::string_view fmt, const Args &...args) const noexcept |
| |
| template<typename StrProvider , typename... Args> |
| void | warn (compile_string_holder< StrProvider > fmt, const Args &...args) const noexcept |
| |
| template<typename... Args> |
| void | error (microfmt::string_view fmt, const Args &...args) const noexcept |
| |
| template<typename StrProvider , typename... Args> |
| void | error (compile_string_holder< StrProvider > fmt, const Args &...args) const noexcept |
| |
| template<typename... Args> |
| void | critical (microfmt::string_view fmt, const Args &...args) const noexcept |
| |
| template<typename StrProvider , typename... Args> |
| void | critical (compile_string_holder< StrProvider > fmt, const Args &...args) const noexcept |
| |
| void | flush () const noexcept |
| |
| template<typename... Args> |
| void | log_loc (std::source_location loc, level lvl, microfmt::string_view fmt_str, const Args &...args) const noexcept |
| |
| template<typename StrProvider , typename... Args> |
| void | log_loc (std::source_location loc, level lvl, compile_string_holder< StrProvider > fmt_str, const Args &...args) const noexcept |
| |
template<std::size_t MaxSinks = 4, std::size_t MsgBufferCapacity = 256, typename Mutex = detail::null_mutex>
class microfmt::log::extended_logger< MaxSinks, MsgBufferCapacity, Mutex >
Logger for advanced sinks. Derives from basic_logger, so the whole formatting/level/locking API is inherited unchanged.
return m;
}
logger.set_meta_callback(&describe_context);
void info(microfmt::string_view fmt, const Args &...args) const noexcept
Definition logger.hpp:138
Type-erased handle to an advanced log sink backend, with a severity threshold. Same two-word-plus-vta...
Definition extended_sink.hpp:77
Logger for advanced sinks. Derives from basic_logger, so the whole formatting/level/locking API is in...
Definition extended_logger.hpp:70
basic_logger< 4, 256 > logger
Definition logger.hpp:242
Structured log record forwarded by a logger to each sink.
Definition log_msg.hpp:69