Add --log-none command line option to disable ALL output from a logdomain
This commit is contained in:
parent
401f88d0e0
commit
624d8e03e1
1 changed files with 3 additions and 0 deletions
|
@ -227,6 +227,7 @@ commandline_options::commandline_options (const std::vector<std::string>& args)
|
|||
("log-warning", po::value<std::string>(), "sets the severity level of the specified log domain(s) to 'warning'. Similar to --log-error.")
|
||||
("log-info", po::value<std::string>(), "sets the severity level of the specified log domain(s) to 'info'. Similar to --log-error.")
|
||||
("log-debug", po::value<std::string>(), "sets the severity level of the specified log domain(s) to 'debug'. Similar to --log-error.")
|
||||
("log-none", po::value<std::string>(), "sets the severity level of the specified log domain(s) to 'none'. Similar to --log-error.")
|
||||
("log-precise", "shows the timestamps in the logfile with more precision.")
|
||||
;
|
||||
|
||||
|
@ -362,6 +363,8 @@ commandline_options::commandline_options (const std::vector<std::string>& args)
|
|||
parse_log_domains_(vm["log-info"].as<std::string>(),lg::info().get_severity());
|
||||
if (vm.count("log-debug"))
|
||||
parse_log_domains_(vm["log-debug"].as<std::string>(),lg::debug().get_severity());
|
||||
if (vm.count("log-none"))
|
||||
parse_log_domains_(vm["log-none"].as<std::string>(),-1);
|
||||
if (vm.count("logdomains"))
|
||||
logdomains = vm["logdomains"].as<std::string>();
|
||||
if (vm.count("log-precise"))
|
||||
|
|
Loading…
Add table
Reference in a new issue