mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
Make syslog backend tweakable.
This commit is contained in:
parent
2678c37b56
commit
e277f9b05c
@ -37,6 +37,8 @@
|
||||
#define DEPRECATED
|
||||
#endif
|
||||
|
||||
#include <spdlog/tweakme.h>
|
||||
|
||||
#ifndef SPDLOG_ENABLE_SYSLOG
|
||||
#if defined (__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
|
||||
#define SPDLOG_ENABLE_SYSLOG
|
||||
|
@ -11,6 +11,14 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// By default, syslog sink is only enabled on tested operating systems.
|
||||
// Uncomment to enable it unconditionally.
|
||||
//
|
||||
// #define SPDLOG_ENABLE_SYSLOG
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
|
||||
// This clock is less accurate - can be off by dozens of millis - depending on the kernel HZ.
|
||||
|
Loading…
Reference in New Issue
Block a user