Syntax
class Logger
{
public:
static void LogInModule(const char *aModuleName, LogLevel aLogLevel, const char *aFormat, ...)
OT_TOOL_PRINTF_STYLE_FORMAT_ARG_CHECK(3, 4);
template <LogLevel kLogLevel>
static void LogAtLevel(const char *aModuleName, const char *aFormat, ...)
OT_TOOL_PRINTF_STYLE_FORMAT_ARG_CHECK(2, 3);
static void LogVarArgs(const char *aModuleName, LogLevel aLogLevel, const char *aFormat, va_list aArgs);
#if OT_SHOULD_LOG_AT(OT_LOG_LEVEL_WARN)
static void LogOnError(const char *aModuleName, Error aError, const char *aText);
#endif
#if OPENTHREAD_CONFIG_LOG_PKT_DUMP
static constexpr uint8_t kStringLineLength = 80;
static constexpr uint8_t kDumpBytesPerLine = 16;
template <LogLevel kLogLevel, const char *kModuleName>
static void Dump(const char *aText, const void *aData, uint16_t aDataLength)
{
DumpAtLevel<kLogLevel>(kModuleName, aText, aData, aDataLength);
}
static void DumpInModule(const char *aModuleName,
LogLevel aLogLevel,
const char *aText,
const void *aData,
uint16_t aDataLength);
template <LogLevel kLogLevel>
static void DumpAtLevel(const char *aModuleName, const char *aText, const void *aData, uint16_t aDataLength);
#endif
};
Fields
Methods
LogInModule()
LogAtLevel()
LogVarArgs()
LogOnError()
Dump()
DumpInModule()
DumpAtLevel()
Dump