|
spdlog
|
Sink that write to systemd journal using the sd_journal_send() library call.
Locking is not needed, as sd_journal_send() itself is thread-safe.
Definition at line 25 of file systemd_sink.h.
#include <systemd_sink.h>
Public Member Functions | |
| systemd_sink () | |
| ~systemd_sink () override | |
| systemd_sink (const systemd_sink &)=delete | |
| systemd_sink & | operator= (const systemd_sink &)=delete |
| void | log (const details::log_msg &msg) final |
| void | flush () final |
| void | set_pattern (const std::string &pattern) final |
| void | set_formatter (std::unique_ptr< spdlog::formatter > sink_formatter) final |
| void | set_level (level::level_enum log_level) |
| level::level_enum | level () const |
| bool | should_log (level::level_enum msg_level) const |
Protected Types | |
| using | levels_array = std::array< int, 7 > |
Protected Member Functions | |
| void | sink_it_ (const details::log_msg &msg) override |
| int | syslog_level (level::level_enum l) |
| void | flush_ () override |
| virtual void | set_pattern_ (const std::string &pattern) |
| virtual void | set_formatter_ (std::unique_ptr< spdlog::formatter > sink_formatter) |
Protected Attributes | |
| levels_array | syslog_levels_ |
| std::unique_ptr< spdlog::formatter > | formatter_ |
| Mutex | mutex_ |
| level_t | level_ {level::trace} |
|
protected |
Definition at line 45 of file systemd_sink.h.
|
inline |
Definition at line 29 of file systemd_sink.h.
|
inlineoverride |
Definition at line 39 of file systemd_sink.h.
|
delete |
|
finalvirtualinherited |
Implements spdlog::sinks::sink.
Definition at line 33 of file base_sink-inl.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 84 of file systemd_sink.h.
|
inherited |
Definition at line 22 of file sink-inl.h.
|
finalvirtualinherited |
Implements spdlog::sinks::sink.
Definition at line 26 of file base_sink-inl.h.
|
delete |
|
finalvirtualinherited |
Implements spdlog::sinks::sink.
Definition at line 47 of file base_sink-inl.h.
|
protectedvirtualinherited |
Reimplemented in spdlog::sinks::dist_sink< Mutex >.
Definition at line 60 of file base_sink-inl.h.
|
inherited |
Definition at line 17 of file sink-inl.h.
|
finalvirtualinherited |
Implements spdlog::sinks::sink.
Definition at line 40 of file base_sink-inl.h.
|
protectedvirtualinherited |
Reimplemented in spdlog::sinks::dist_sink< Mutex >.
Definition at line 54 of file base_sink-inl.h.
|
inherited |
Definition at line 12 of file sink-inl.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 48 of file systemd_sink.h.
|
inlineprotected |
Definition at line 79 of file systemd_sink.h.
|
protectedinherited |
Definition at line 39 of file base_sink.h.
|
protectedinherited |
|
mutableprotectedinherited |
Definition at line 40 of file base_sink.h.
|
protected |
Definition at line 46 of file systemd_sink.h.