write to /var/log/syslog
liuty2006 opened this issue · 1 comments
liuty2006 commented
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?
SergiusTheBest commented
It's weird as plog has no syslog appender implemented. Could you post the message from syslog?