Optional arguments for syslog_logger factory.

This commit is contained in:
fooinha
2014-12-18 15:47:43 +00:00
parent 309fca8a72
commit 375b88c191
4 changed files with 32 additions and 20 deletions

View File

@@ -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.
*