Handle Qt logging category when redirecting to SYSLOG channel

This commit is contained in:
Bill Somerville 2020-12-02 00:40:37 +00:00
parent 5f85dfac61
commit 917e87cee5
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 2 additions and 2 deletions

View File

@ -97,11 +97,11 @@ namespace
} }
else else
{ {
BOOST_LOG_CHANNEL_SEV (log, std::string {context.category}, severity) BOOST_LOG_SEV (log, severity)
<< boost::log::add_value ("Line", context.line) << boost::log::add_value ("Line", context.line)
<< boost::log::add_value ("File", file) << boost::log::add_value ("File", file)
<< boost::log::add_value ("Function", function) << boost::log::add_value ("Function", function)
<< msg.toStdString (); << context.category << ": " << msg.toStdString ();
} }
if (QtFatalMsg == type) if (QtFatalMsg == type)
{ {