| 538 | } |
| 539 | |
| 540 | inline bool log_param_pair_parse(bool check_but_dont_parse, const std::string & param, const std::string & next = std::string()) |
| 541 | { |
| 542 | if ( param == "--log-file") |
| 543 | { |
| 544 | if (!check_but_dont_parse) |
| 545 | { |
| 546 | log_set_target(log_filename_generator(next.empty() ? "unnamed" : next, "log")); |
| 547 | } |
| 548 | |
| 549 | return true; |
| 550 | } |
| 551 | |
| 552 | return false; |
| 553 | } |
| 554 | |
| 555 | inline void log_print_usage() |
| 556 | { |
no test coverage detected