Agora
1.2.0
Agora project
|
#include <systemd_sink.h>
Public Member Functions | |
systemd_sink (std::string ident="", bool enable_formatting=false) | |
~systemd_sink () override | |
systemd_sink (const systemd_sink &)=delete | |
systemd_sink & | operator= (const systemd_sink &)=delete |
Public Member Functions inherited from spdlog::sinks::base_sink< Mutex > | |
base_sink () | |
base_sink (std::unique_ptr< spdlog::formatter > formatter) | |
~base_sink () override=default | |
base_sink (const base_sink &)=delete | |
base_sink (base_sink &&)=delete | |
base_sink & | operator= (const base_sink &)=delete |
base_sink & | operator= (base_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 |
Public Member Functions inherited from spdlog::sinks::sink | |
virtual | ~sink ()=default |
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 |
Protected Member Functions inherited from spdlog::sinks::base_sink< Mutex > | |
virtual void | set_pattern_ (const std::string &pattern) |
virtual void | set_formatter_ (std::unique_ptr< spdlog::formatter > sink_formatter) |
Protected Attributes | |
const std::string | ident_ |
bool | enable_formatting_ = false |
levels_array | syslog_levels_ |
Protected Attributes inherited from spdlog::sinks::base_sink< Mutex > | |
std::unique_ptr< spdlog::formatter > | formatter_ |
Mutex | mutex_ |
Protected Attributes inherited from spdlog::sinks::sink | |
level_t | level_ {level::trace} |
Sink that write to systemd journal using the sd_journal_send()
library call.
|
protected |
|
inline |
|
inlineoverride |
|
delete |
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
|
delete |
|
inlineoverrideprotectedvirtual |
|
inlineprotected |
|
protected |
|
protected |
|
protected |