Agora
1.2.0
Agora project
|
Go to the documentation of this file.
11 #ifndef SD_JOURNAL_SUPPRESS_LOCATION
12 # define SD_JOURNAL_SUPPRESS_LOCATION
14 #include <systemd/sd-journal.h>
22 template<
typename Mutex>
26 systemd_sink(std::string ident =
"",
bool enable_formatting =
false)
78 "SYSLOG_IDENTIFIER=%.*s",
static_cast<int>(syslog_identifier.
size()), syslog_identifier.
data(),
nullptr);
83 "SYSLOG_IDENTIFIER=%.*s",
static_cast<int>(syslog_identifier.
size()), syslog_identifier.
data(),
"CODE_FILE=%s",
106 template<
typename Factory = spdlog::synchronous_factory>
108 const std::string &logger_name,
const std::string &ident =
"",
bool enable_formatting =
false)
110 return Factory::template create<sinks::systemd_sink_mt>(logger_name, ident, enable_formatting);
113 template<
typename Factory = spdlog::synchronous_factory>
115 const std::string &logger_name,
const std::string &ident =
"",
bool enable_formatting =
false)
117 return Factory::template create<sinks::systemd_sink_st>(logger_name, ident, enable_formatting);
systemd_sink & operator=(const systemd_sink &)=delete
const char * funcname
Definition: common.h:305
const char * filename
Definition: common.h:303
string_view_t payload
Definition: log_msg.h:30
fmt::basic_string_view< char > string_view_t
Definition: common.h:154
void sink_it_(const details::log_msg &msg) override
Definition: systemd_sink.h:49
constexpr auto size() const -> size_t
Definition: core.h:820
Definition: systemd_sink.h:23
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
level_enum
Definition: common.h:211
bool enable_formatting_
Definition: systemd_sink.h:45
int syslog_level(level::level_enum l)
Definition: systemd_sink.h:93
@ err
Definition: common.h:217
SPDLOG_INLINE void throw_spdlog_ex(const std::string &msg, int last_errno)
Definition: common-inl.h:72
Definition: base_sink.h:19
void flush_() override
Definition: systemd_sink.h:98
string_view_t logger_name
Definition: log_msg.h:20
systemd_sink(std::string ident="", bool enable_formatting=false)
Definition: systemd_sink.h:26
const std::string ident_
Definition: systemd_sink.h:44
int line
Definition: common.h:304
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
std::shared_ptr< logger > systemd_logger_mt(const std::string &logger_name, const std::string &ident="", bool enable_formatting=false)
Definition: systemd_sink.h:107
levels_array syslog_levels_
Definition: systemd_sink.h:47
source_loc source
Definition: log_msg.h:29
std::shared_ptr< logger > systemd_logger_st(const std::string &logger_name, const std::string &ident="", bool enable_formatting=false)
Definition: systemd_sink.h:114
l
Definition: parse_all_dl.m:71
constexpr bool empty() const noexcept
Definition: common.h:299
~systemd_sink() override
Definition: systemd_sink.h:38
std::array< int, 7 > levels_array
Definition: systemd_sink.h:46