mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 17:22:06 +08:00
Make syslog backend tweakable.
This commit is contained in:
parent
2678c37b56
commit
e277f9b05c
@ -37,6 +37,8 @@
|
|||||||
#define DEPRECATED
|
#define DEPRECATED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <spdlog/tweakme.h>
|
||||||
|
|
||||||
#ifndef SPDLOG_ENABLE_SYSLOG
|
#ifndef SPDLOG_ENABLE_SYSLOG
|
||||||
#if defined (__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
|
#if defined (__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
|
||||||
#define SPDLOG_ENABLE_SYSLOG
|
#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.
|
// 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.
|
// 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