Syntax
class Logger
{
protected:
explicit Logger(const char *aModuleName);
void LogIfFail(const char *aText, otError aError);
void LogCrit(const char *aFormat, ...) OT_TOOL_PRINTF_STYLE_FORMAT_ARG_CHECK(2, 3);
void LogWarn(const char *aFormat, ...) OT_TOOL_PRINTF_STYLE_FORMAT_ARG_CHECK(2, 3);
void LogNote(const char *aFormat, ...) OT_TOOL_PRINTF_STYLE_FORMAT_ARG_CHECK(2, 3);
void LogInfo(const char *aFormat, ...) OT_TOOL_PRINTF_STYLE_FORMAT_ARG_CHECK(2, 3);
void LogDebg(const char *aFormat, ...) OT_TOOL_PRINTF_STYLE_FORMAT_ARG_CHECK(2, 3);
uint32_t Snprintf(char *aDest, uint32_t aSize, const char *aFormat, ...);
void LogSpinelFrame(const uint8_t *aFrame, uint16_t aLength, bool aTx);
enum
{
kChannelMaskBufferSize = 32,
};
const char *mModuleName;
};
Fields
Methods
LogIfFail()
LogCrit()
LogWarn()
LogNote()
LogInfo()
LogDebg()
Snprintf()
LogSpinelFrame()