Responsible for logging all messages from the component. More...
Public Member Functions | |
nkLog::Logger * | getReceiver () const |
void | setReceiver (nkLog::Logger *receiver) |
void | log (const nkMemory::StringView &message, const nkMemory::StringView &className) |
Responsible for logging all messages from the component.
By registering a nkLog::Logger inside, it is possible to listen to all messages logged.
nkLog::Logger* nkWinUi::LogManager::getReceiver | ( | ) | const |
void nkWinUi::LogManager::setReceiver | ( | nkLog::Logger * | receiver | ) |
Allows to set the logger that should receive the messages.
receiver | The logger to send messages to. |
void nkWinUi::LogManager::log | ( | const nkMemory::StringView & | message, |
const nkMemory::StringView & | className | ||
) |
Called by component's classes to log messages they need to log.
message | The message to log. |
className | Bonus context information. |