mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-22 15:07:26 +01:00
added facility to SyslogChannel (#3453)
This commit is contained in:
parent
ff879f5905
commit
ec41521ca5
@ -69,7 +69,8 @@ void SyslogChannel::close()
|
||||
void SyslogChannel::log(const Message& msg)
|
||||
{
|
||||
if (!_open) open();
|
||||
syslog(getPrio(msg), "%s", msg.getText().c_str());
|
||||
const int pri = getPrio(msg) + _facility;
|
||||
syslog(pri, "%s", msg.getText().c_str());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user