SergiusTheBest/plog

write to /var/log/syslog

liuty2006 opened this issue · 1 comments

static plog::ColorConsoleAppender<plog::TxtFormatter> consoleAppender;
static plog::RollingFileAppender<plog::TxtFormatter> fileAppender(logFilePath.c_str(), 1024 * 1024 * 10, 8);
plog::Severity sev = (plog::Severity)nLevel;
plog::init(sev, &consoleAppender);
plog::init(sev, &fileAppender);

when log to logFilePath, at same time write to /var/log/syslog  -- why?

It's weird as plog has no syslog appender implemented. Could you post the message from syslog?