SergiusTheBest / plog

Portable, simple and extensible C++ logging library
MIT License
2.19k stars 385 forks source link

write to /var/log/syslog #285

Open liuty2006 opened 5 months ago

liuty2006 commented 5 months ago
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 5 months ago

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