API Documentation
Public Member Functions | List of all members
nkWinUi::LogManager Class Referencefinal

Responsible for logging all messages from the component. More...

Inheritance diagram for nkWinUi::LogManager:

Public Member Functions

nkLog::LoggergetReceiver () const
 
void setReceiver (nkLog::Logger *receiver)
 
void log (const nkMemory::StringView &message, const nkMemory::StringView &className)
 

Detailed Description

Responsible for logging all messages from the component.

By registering a nkLog::Logger inside, it is possible to listen to all messages logged.

Member Function Documentation

◆ getReceiver()

nkLog::Logger* nkWinUi::LogManager::getReceiver ( ) const
Returns
The currently registered logger.

◆ setReceiver()

void nkWinUi::LogManager::setReceiver ( nkLog::Logger receiver)

Allows to set the logger that should receive the messages.

Parameters
receiverThe logger to send messages to.

◆ log()

void nkWinUi::LogManager::log ( const nkMemory::StringView message,
const nkMemory::StringView className 
)

Called by component's classes to log messages they need to log.

Parameters
messageThe message to log.
classNameBonus context information.

The documentation for this class was generated from the following file: