mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Make syslog backend tweakable.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user