 |
Xyris
0.5
|
Go to the documentation of this file.
30 typedef int (*
LogWriter)(
const char* fmt, va_list args);
35 [[gnu::format(
printf, 2, 3)]]
static void Trace(
const char* tag,
const char* fmt, ...);
36 [[gnu::format(
printf, 2, 3)]]
static void Verbose(
const char* tag,
const char* fmt, ...);
37 [[gnu::format(
printf, 2, 3)]]
static void Debug(
const char* tag,
const char* fmt, ...);
38 [[gnu::format(
printf, 2, 3)]]
static void Info(
const char* tag,
const char* fmt, ...);
39 [[gnu::format(
printf, 2, 3)]]
static void Warning(
const char* tag,
const char* fmt, ...);
40 [[gnu::format(
printf, 2, 3)]]
static void Error(
const char* tag,
const char* fmt, ...);
41 [[gnu::format(
printf, 1, 2)]]
static void Print(
const char* fmt, ...);
Resource Acquisition Is Initialization mutex. Locks when constructed and unlocks when destructed.
static LogLevel getLevel()
static const uint32_t m_maxBufferSize
void LogHelper(const char *tag, LogLevel lvl, const char *fmt, va_list args)
void LogHelperPrint(const char *fmt, va_list args)
static void setLevel(LogLevel level)
static void Error(const char *tag, const char *fmt,...)
char m_logBuffer[m_maxBufferSize]
int(* LogWriter)(const char *fmt, va_list args)
static void Verbose(const char *tag, const char *fmt,...)
static void Info(const char *tag, const char *fmt,...)
LogWriter m_writers[m_maxWriterCount]
static bool addWriter(LogWriter writer)
static void Trace(const char *tag, const char *fmt,...)
static void Warning(const char *tag, const char *fmt,...)
int printf(const char *fmt,...)
const char * levelToString(LogLevel lvl)
static void Print(const char *fmt,...)
static void Debug(const char *tag, const char *fmt,...)
void operator=(Logger const &)=delete
static bool removeWriter(LogWriter writer)
static const uint8_t m_maxWriterCount