|
spdlog
|
Sink that write to syslog using the syscall() library call.
Definition at line 20 of file syslog_sink.h.
#include <syslog_sink.h>
Public Member Functions | |
| syslog_sink (std::string ident, int syslog_option, int syslog_facility, bool enable_formatting) | |
| ~syslog_sink () override | |
| syslog_sink (const syslog_sink &)=delete | |
| syslog_sink & | operator= (const syslog_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 Member Functions | |
| void | sink_it_ (const details::log_msg &msg) override |
| void | flush_ () override |
| virtual void | set_pattern_ (const std::string &pattern) |
| virtual void | set_formatter_ (std::unique_ptr< spdlog::formatter > sink_formatter) |
Protected Attributes | |
| bool | enable_formatting_ = false |
| std::unique_ptr< spdlog::formatter > | formatter_ |
| Mutex | mutex_ |
| level_t | level_ {level::trace} |
Private Types | |
| using | levels_array = std::array< int, 7 > |
Private Member Functions | |
| int | syslog_prio_from_level (const details::log_msg &msg) const |
Private Attributes | |
| levels_array | syslog_levels_ |
| const std::string | ident_ |
|
private |
Definition at line 76 of file syslog_sink.h.
|
inline |
Definition at line 24 of file syslog_sink.h.
|
inlineoverride |
Definition at line 39 of file syslog_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 72 of file syslog_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 syslog_sink.h.
|
inlineprivate |
Definition at line 85 of file syslog_sink.h.
|
protected |
Definition at line 73 of file syslog_sink.h.
|
protectedinherited |
Definition at line 39 of file base_sink.h.
|
private |
Definition at line 80 of file syslog_sink.h.
|
protectedinherited |
|
mutableprotectedinherited |
Definition at line 40 of file base_sink.h.
|
private |
Definition at line 77 of file syslog_sink.h.