mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-28 16:36:17 +02:00
Read logging settings from config file
This commit is contained in:
parent
ed3d9e5ebc
commit
7c71e0346b
2 changed files with 3 additions and 3 deletions
|
@ -70,8 +70,8 @@ int main(int argc, char* argv[])
|
|||
|
||||
// debug settings
|
||||
OptionParser conf("");
|
||||
op.add<Value<string>>("", "logging.sink", "log sink [null,system,stdout,stderr,file:<filename>]", settings.logging.sink, &settings.logging.sink);
|
||||
auto logfilterOption = op.add<Value<string>>(
|
||||
conf.add<Value<string>>("", "logging.sink", "log sink [null,system,stdout,stderr,file:<filename>]", settings.logging.sink, &settings.logging.sink);
|
||||
auto logfilterOption = conf.add<Value<string>>(
|
||||
"", "logging.filter",
|
||||
"log filter <tag>:<level>[,<tag>:<level>]* with tag = * or <log tag> and level = [trace,debug,info,notice,warning,error,fatal]",
|
||||
settings.logging.filter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue