Agora
1.2.0
Agora project
|
Go to the documentation of this file.
19 template<
typename Mutex>
24 syslog_sink(std::string ident,
int syslog_option,
int syslog_facility,
bool enable_formatting)
36 ::openlog(
ident_.empty() ?
nullptr :
ident_.c_str(), syslog_option, syslog_facility);
96 template<
typename Factory = spdlog::synchronous_factory>
97 inline std::shared_ptr<logger>
syslog_logger_mt(
const std::string &logger_name,
const std::string &syslog_ident =
"",
int syslog_option = 0,
98 int syslog_facility = LOG_USER,
bool enable_formatting =
false)
100 return Factory::template create<sinks::syslog_sink_mt>(logger_name, syslog_ident, syslog_option, syslog_facility, enable_formatting);
103 template<
typename Factory = spdlog::synchronous_factory>
104 inline std::shared_ptr<logger>
syslog_logger_st(
const std::string &logger_name,
const std::string &syslog_ident =
"",
int syslog_option = 0,
105 int syslog_facility = LOG_USER,
bool enable_formatting =
false)
107 return Factory::template create<sinks::syslog_sink_st>(logger_name, syslog_ident, syslog_option, syslog_facility, enable_formatting);
bool enable_formatting_
Definition: syslog_sink.h:73
levels_array syslog_levels_
Definition: syslog_sink.h:77
const std::string ident_
Definition: syslog_sink.h:80
std::shared_ptr< logger > syslog_logger_mt(const std::string &logger_name, const std::string &syslog_ident="", int syslog_option=0, int syslog_facility=LOG_USER, bool enable_formatting=false)
Definition: syslog_sink.h:97
string_view_t payload
Definition: log_msg.h:30
fmt::basic_string_view< char > string_view_t
Definition: common.h:154
constexpr auto size() const -> size_t
Definition: core.h:820
~syslog_sink() override
Definition: syslog_sink.h:39
void sink_it_(const details::log_msg &msg) override
Definition: syslog_sink.h:48
end IFFT Reshape the symbol vector into two different spatial streams length(tx_syms)/NUM_UE
constexpr auto size() const -> size_t
Definition: core.h:495
std::array< int, 7 > levels_array
Definition: syslog_sink.h:76
syslog_sink(std::string ident, int syslog_option, int syslog_facility, bool enable_formatting)
Definition: syslog_sink.h:24
void flush_() override
Definition: syslog_sink.h:72
Definition: base_sink.h:19
std::shared_ptr< logger > syslog_logger_st(const std::string &logger_name, const std::string &syslog_ident="", int syslog_option=0, int syslog_facility=LOG_USER, bool enable_formatting=false)
Definition: syslog_sink.h:104
int syslog_prio_from_level(const details::log_msg &msg) const
Definition: syslog_sink.h:85
level::level_enum level
Definition: log_msg.h:21
auto data() -> T *
Definition: core.h:826
constexpr auto data() const -> const Char *
Definition: core.h:492
Definition: syslog_sink.h:20
syslog_sink & operator=(const syslog_sink &)=delete