| 70 | |
| 71 | |
| 72 | Future<Nothing> Logging::set_level(int level, const Duration& duration) |
| 73 | { |
| 74 | // Set the logging level. |
| 75 | set(level); |
| 76 | |
| 77 | // Start a revert timer (if necessary). |
| 78 | if (level != original) { |
| 79 | timeout = duration; |
| 80 | delay(timeout.remaining(), this, &This::revert); |
| 81 | } |
| 82 | |
| 83 | return Nothing(); |
| 84 | } |
| 85 | |
| 86 | |
| 87 | const std::string Logging::TOGGLE_HELP() |