libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_ilogger.h File Reference

Go to the source code of this file.

Data Structures

struct  GblILoggerClass
 

Macros

#define GBL_ILOGGER_TYPE
 
#define GBL_ILOGGER(instance)
 
#define GBL_ILOGGER_CLASS(klass)
 
#define GBL_ILOGGER_GET_CLASS(instance)
 
#define GBL_META_LOG_LEVEL_TABLE
 

Typedefs

typedef GblEnum GBL_LOG_LEVEL
 
typedef struct GblILogger GblILogger
 

Enumerations

enum  GBL_LOG_LEVEL
 

Functions

static const char * gblLogLevelString (GBL_LOG_LEVEL value)
 
GblType GblILogger_type (void)
 
GBL_RESULT GblILogger_write (GblILogger *pSelf, const GblStackFrame *pFrame, GBL_LOG_LEVEL level, const char *pFmt, va_list varArgs)
 
GBL_RESULT GblILogger_push (GblILogger *pSelf, const GblStackFrame *pFrame)
 
GBL_RESULT GblILogger_pop (GblILogger *pSelf, const GblStackFrame *pFrame, uint32_t count)
 

Detailed Description

GblILogger abstract logger interface.

Todo
  • obsolete me
Author
Falco Girgis

Definition in file gimbal_ilogger.h.

Macro Definition Documentation

◆ GBL_ILOGGER_TYPE

#define GBL_ILOGGER_TYPE

Definition at line 17 of file gimbal_ilogger.h.

◆ GBL_ILOGGER

#define GBL_ILOGGER ( instance)

Definition at line 18 of file gimbal_ilogger.h.

◆ GBL_ILOGGER_CLASS

#define GBL_ILOGGER_CLASS ( klass)

Definition at line 19 of file gimbal_ilogger.h.

◆ GBL_ILOGGER_GET_CLASS

#define GBL_ILOGGER_GET_CLASS ( instance)

Definition at line 20 of file gimbal_ilogger.h.

◆ GBL_META_LOG_LEVEL_TABLE

#define GBL_META_LOG_LEVEL_TABLE

Definition at line 28 of file gimbal_ilogger.h.

28#define GBL_META_LOG_LEVEL_TABLE ( \
29 ( GBL_LOG_LEVEL, LogLevel, "Log Message Severity Level", gblLogLevelString), \
30 ( \
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") \
37 ) \
38 )

Typedef Documentation

◆ GBL_LOG_LEVEL

Definition at line 40 of file gimbal_ilogger.h.

◆ GblILogger

typedef struct GblILogger GblILogger

Definition at line 50 of file gimbal_ilogger.h.

Enumeration Type Documentation

◆ GBL_LOG_LEVEL

Enumerator
GBL_LOG_LEVEL_DEBUG 

"Debug"

GBL_LOG_LEVEL_VERBOSE 

"Verbose"

Definition at line 40 of file gimbal_ilogger.h.

Function Documentation

◆ gblLogLevelString()

static const char * gblLogLevelString ( GBL_LOG_LEVEL value)
inlinestatic

Definition at line 40 of file gimbal_ilogger.h.