logging: Split timestamp and repeat functionality into its own class

This will eventually allow better integration with other formatting
functions like color_out, color_printf
This commit is contained in:
Martin Piatka
2022-08-01 13:56:39 +02:00
parent 44294ef0c6
commit 65d7cf69b8
4 changed files with 77 additions and 44 deletions

View File

@@ -370,8 +370,6 @@ void debug_file_dump(const char *key, void (*serialize)(const void *data, FILE *
}
#endif
std::atomic<Logger::last_message *> Logger::last_msg{};
thread_local std::set<uint32_t> Logger::oneshot_messages;
std::atomic<bool> Logger::skip_repeated{true};
log_timestamp_mode Logger::show_timestamps = LOG_TIMESTAMP_AUTO;
thread_local std::string Log_output::buffer;