Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write to /var/log/syslog #285

Open
liuty2006 opened this issue Mar 29, 2024 · 1 comment
Open

write to /var/log/syslog #285

liuty2006 opened this issue Mar 29, 2024 · 1 comment
Labels

Comments

@liuty2006
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants