Commit e277f9b0 authored by Nazım Can Bedir's avatar Nazım Can Bedir

Make syslog backend tweakable.

parent 2678c37b
...@@ -37,6 +37,8 @@ ...@@ -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 @@ ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment