mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-22 05:26:17 +02:00
update aixlog
This commit is contained in:
parent
c3d1ded653
commit
0c3a881df0
5 changed files with 330 additions and 218 deletions
|
@ -117,7 +117,7 @@ int main (int argc, char **argv)
|
|||
}
|
||||
catch (const std::invalid_argument& e)
|
||||
{
|
||||
SLOG(LOG_ERR) << "Exception: " << e.what() << std::endl;
|
||||
cerr << "Exception: " << e.what() << std::endl;
|
||||
cout << "\n" << op << "\n";
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
@ -155,10 +155,10 @@ int main (int argc, char **argv)
|
|||
if (instance <= 0)
|
||||
std::invalid_argument("instance id must be >= 1");
|
||||
|
||||
Log::init(
|
||||
AixLog::Log::init(
|
||||
{
|
||||
make_shared<LogSinkCout>(debugSwitch.isSet()?(LogSeverity::trace):(LogSeverity::info), LogSink::Type::all, debugSwitch.isSet()?"%Y-%m-%d %H-%M-%S.#ms [#prio] (#tag)":"%Y-%m-%d %H-%M-%S [#prio]"),
|
||||
make_shared<LogSinkNative>("snapclient", LogSeverity::trace, LogSink::Type::special)
|
||||
make_shared<AixLog::SinkCout>(debugSwitch.isSet()?(AixLog::Severity::trace):(AixLog::Severity::info), AixLog::Type::all, debugSwitch.isSet()?"%Y-%m-%d %H-%M-%S.#ms [#severity] (#tag)":"%Y-%m-%d %H-%M-%S [#severity]"),
|
||||
make_shared<AixLog::SinkNative>("snapclient", AixLog::Severity::trace, AixLog::Type::special)
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue