9#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
13#ifndef OPTIONAL_ENUM_CLASS
14#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
15#define OPTIONAL_ENUM_CLASS enum class
17#define OPTIONAL_ENUM_CLASS enum
21#ifndef OPTIONAL_LOG_LEVEL_SPECIFIER
22#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
23#define OPTIONAL_LOG_LEVEL_SPECIFIER LOG_LEVEL::
25#define OPTIONAL_LOG_LEVEL_SPECIFIER
39 LOG_LEVEL_NONE = 0x0000,
43 LOG_LEVEL_INFO = 0x0001,
47 LOG_LEVEL_WARN = 0x0002,
51 LOG_LEVEL_ERROR = 0x0004,
55 LOG_LEVEL_FATAL = 0x0008,
71 virtual int32_t writeLog(
LOG_LEVEL level,
const char* message, uint16_t length) = 0;
73 virtual ~ILogWriter() {}
109 LOG_FILTER_MASK = 0x80f,
142#undef OPTIONAL_LOG_LEVEL_SPECIFIER
#define OPTIONAL_ENUM_CLASS
Definition: IAgoraLog.h:17
#define OPTIONAL_LOG_LEVEL_SPECIFIER
Definition: IAgoraLog.h:25
const uint32_t MAX_LOG_SIZE
Definition: IAgoraLog.h:113
OPTIONAL_ENUM_CLASS LOG_LEVEL
Definition: IAgoraLog.h:35
const uint32_t MIN_LOG_SIZE
Definition: IAgoraLog.h:114
const uint32_t DEFAULT_LOG_SIZE_IN_KB
Definition: IAgoraLog.h:117
LOG_FILTER_TYPE
Definition: IAgoraLog.h:80
@ LOG_FILTER_CRITICAL
Definition: IAgoraLog.h:104
@ LOG_FILTER_DEBUG
Definition: IAgoraLog.h:88
@ LOG_FILTER_WARN
Definition: IAgoraLog.h:96
@ LOG_FILTER_INFO
Definition: IAgoraLog.h:92
@ LOG_FILTER_ERROR
Definition: IAgoraLog.h:100
@ LOG_FILTER_OFF
Definition: IAgoraLog.h:84
Definition: AgoraBase.h:86
Definition: IAgoraLog.h:123
LogConfig()
Definition: IAgoraLog.h:137
LOG_LEVEL level
Definition: IAgoraLog.h:135
uint32_t fileSizeInKB
Definition: IAgoraLog.h:131
const char * filePath
Definition: IAgoraLog.h:127