mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 06:32:06 +08:00
revert syslog
This commit is contained in:
parent
c2fc8edfed
commit
a3a8f107a4
@ -65,11 +65,9 @@ namespace spdlog
|
|||||||
syslog_sink(const syslog_sink&) = delete;
|
syslog_sink(const syslog_sink&) = delete;
|
||||||
syslog_sink& operator=(const syslog_sink&) = delete;
|
syslog_sink& operator=(const syslog_sink&) = delete;
|
||||||
|
|
||||||
void sink_it(const char* data, size_t size) override
|
void log(const details::log_msg &msg) override
|
||||||
{
|
{
|
||||||
std::string s(data, size);
|
syslog(syslog_prio_from_level(msg), "%s", msg.formatted.str().c_str());
|
||||||
//syslog(syslog_prio_from_level(msg), "%s", s.c_str());
|
|
||||||
syslog(LOG_INFO, "%s", s.c_str());
|
|
||||||
};
|
};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user