* Print out the current debug-level. * Just return a string with the values of all the debug categories. * @return string with debug-levels */
| 199 | * @return string with debug-levels |
| 200 | */ |
| 201 | std::string GetDebugString() |
| 202 | { |
| 203 | std::string result; |
| 204 | for (const auto &debug_level : _debug_levels) { |
| 205 | if (!result.empty()) result += ", "; |
| 206 | format_append(result, "{}={}", debug_level.name, *debug_level.level); |
| 207 | } |
| 208 | return result; |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * Get the prefix for logs. |
no test coverage detected