Prepare event manager

The event manager forms the basis for semantic logging.
The emulator transmits events and the manager can handle them.
This means to either print information to stdout, do nothing, etc...
This commit is contained in:
momo5502
2025-06-03 20:29:58 +02:00
parent dcee2982ce
commit 32fcbf3ded
6 changed files with 144 additions and 27 deletions

View File

@@ -116,8 +116,13 @@ void logger::print_message(const color c, const std::string_view message, const
print_colored(message, get_color_type(c));
}
void logger::print(const color c, const std::string_view message)
{
this->print_message(c, message);
}
// NOLINTNEXTLINE(cert-dcl50-cpp)
void logger::print(const color c, const char* message, ...) const
void logger::print(const color c, const char* message, ...)
{
format_to_string(message, data);
this->print_message(c, data);