MRM LoggingDelegate Class
Note: Watch the replay of Alexa Live ‘22 on demand. Catch the latest on ambient intelligence, smart home, and AI.
The LoggingDelegate
class provides access to log events generated by the Multi-Room Music (MRM) SDK.
LoggingDelegate Class Declaration
This is a sample declaration of the LoggingDelegate
class:
class LoggingDelegate {
public:
virtual void log(LogLevel level, const char *tag, const char *text) = 0;
};
log()
Implement this function to log messages via whatever mechanism is suitable for the AVS client.
virtual void log(LogLevel level, const char *tag, const char *text) = 0;
Parameter | Description |
---|---|
LogLevel level | Logging level. |
const char *tag | A WHA susbsystem tag. E.g. AudioRenderer, TimeSyncMaster. |
const char *text | Message text to be logged. |
LogLevel Enum
enum LogLevel {
LOG_VERBOSE = 1,
LOG_DEBUG,
LOG_INFO,
LOG_WARN,
LOG_ERROR,
LOG_FATAL
};