mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 11:29:01 +08:00
Optional arguments for syslog_logger factory.
This commit is contained in:
@@ -28,9 +28,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#define SYSLOG_NAMES 1
|
||||
|
||||
#include <syslog.h>
|
||||
#include "./sink.h"
|
||||
#include "../common.h"
|
||||
#include "../details/log_msg.h"
|
||||
@@ -40,21 +38,6 @@ namespace spdlog
|
||||
{
|
||||
namespace sinks
|
||||
{
|
||||
namespace syslog
|
||||
{
|
||||
namespace option
|
||||
{
|
||||
typedef enum
|
||||
{
|
||||
CONS = LOG_CONS,
|
||||
NDELAY = LOG_NDELAY,
|
||||
NOWAIT = LOG_NOWAIT,
|
||||
ODELAY = LOG_ODELAY,
|
||||
PERROR = LOG_PERROR,
|
||||
PID = LOG_PID
|
||||
} option_enum;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Sink that write to syslog using the `syscall()` library call.
|
||||
*
|
||||
|
Reference in New Issue
Block a user