2
3
4
5
6
7
8
11#ifndef GIMBAL_ILOGGER_H
12#define GIMBAL_ILOGGER_H
17#define GBL_ILOGGER_TYPE (GBL_TYPEID(GblILogger))
18#define GBL_ILOGGER(instance) (GBL_CAST(GblILogger, instance))
19#define GBL_ILOGGER_CLASS(klass) (GBL_CLASS_CAST(GblILogger, klass))
20#define GBL_ILOGGER_GET_CLASS(instance) (GBL_CLASSOF(GblILogger, instance))
22#define GBL_SELF_TYPE GblILogger
28#define GBL_META_LOG_LEVEL_TABLE (
29 ( GBL_LOG_LEVEL, LogLevel, "Log Message Severity Level", gblLogLevelString),
31 (GBL_LOG_LEVEL_DEBUG, 0x1
, Debug, "Debug"),
32 (GBL_LOG_LEVEL_VERBOSE, 0x2
, Verbose, "Verbose"),
33 (GBL_LOG_LEVEL_INFO, 0x4
, Info, "Info"),
34 (GBL_LOG_LEVEL_WARNING, 0x8
, Warning, "Warning"),
35 (GBL_LOG_LEVEL_ERROR, 0x10
, Error, "Error"),
36 (GBL_LOG_LEVEL_COUNT, 0x5
, Count, "# of Levels")
43
44
45
46
47
48
49
51 GBL_RESULT (*pFnWrite)(
GBL_SELF,
const GblStackFrame* pFrame, GBL_LOG_LEVEL level,
const char* pFmt, va_list varArgs);
52 GBL_RESULT (*pFnPush) (
GBL_SELF,
const GblStackFrame* pFrame);
53 GBL_RESULT (*pFnPop) (
GBL_SELF,
const GblStackFrame* pFrame, uint32_t count);
59 const GblStackFrame* pFrame,
68 const GblStackFrame* pFrame,
#define GBL_CLASS_CAST(cType, klass)
#define GBL_FORWARD_DECLARE_STRUCT(S)
#define GBL_TYPEID(instanceStruct)
#define GBL_INTERFACE_END
#define GBL_INTERFACE_DERIVE(...)
#define GBL_ENUM_TABLE_DECLARE(table)
#define GBL_META_LOG_LEVEL_TABLE