mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 19:53:56 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user