MySQL 8.0.39
Source Code Documentation
xcom_logger.h File Reference
#include "xcom/x_platform.h"

Go to the source code of this file.

Macros

#define GCS_XCOM_DEBUG_INFORMATION
 

Typedefs

typedef void(* xcom_logger) (const int64_t level, const char *message)
 
typedef void(* xcom_debugger) (const char *format,...)
 
typedef int(* xcom_debugger_check) (const int64_t debug_options)
 

Enumerations

enum  xcom_log_level_t { XCOM_LOG_FATAL = 0 , XCOM_LOG_ERROR = 1 , XCOM_LOG_WARN = 2 , XCOM_LOG_INFO = 3 }
 
enum  gcs_xcom_debug_option_t {
  GCS_DEBUG_NONE = 0x00000000 , GCS_DEBUG_BASIC = 0x00000001 , GCS_DEBUG_TRACE = 0x00000002 , XCOM_DEBUG_BASIC = 0x00000004 ,
  XCOM_DEBUG_TRACE = 0x00000008 , GCS_DEBUG_MSG_FLOW = 0x00000010 , XCOM_DEBUG_MSG_FLOW = 0x00000020 , GCS_INVALID_DEBUG = ~(0x7FFFFFFF) ,
  GCS_DEBUG_ALL = ~(GCS_DEBUG_NONE) , GCS_DEBUG_NONE = 0x00000000 , GCS_DEBUG_BASIC = 0x00000001 , GCS_DEBUG_TRACE = 0x00000002 ,
  XCOM_DEBUG_BASIC = 0x00000004 , XCOM_DEBUG_TRACE = 0x00000008 , GCS_DEBUG_MSG_FLOW = 0x00000010 , XCOM_DEBUG_MSG_FLOW = 0x00000020 ,
  GCS_INVALID_DEBUG = ~(0x7FFFFFFF) , GCS_DEBUG_ALL = ~(GCS_DEBUG_NONE)
}
 

Variables

static const char *const xcom_log_levels []
 

Macro Definition Documentation

◆ GCS_XCOM_DEBUG_INFORMATION

#define GCS_XCOM_DEBUG_INFORMATION

Typedef Documentation

◆ xcom_debugger

typedef void(* xcom_debugger) (const char *format,...)

◆ xcom_debugger_check

typedef int(* xcom_debugger_check) (const int64_t debug_options)

◆ xcom_logger

typedef void(* xcom_logger) (const int64_t level, const char *message)

Enumeration Type Documentation

◆ gcs_xcom_debug_option_t

Enumerator
GCS_DEBUG_NONE 
GCS_DEBUG_BASIC 
GCS_DEBUG_TRACE 
XCOM_DEBUG_BASIC 
XCOM_DEBUG_TRACE 
GCS_DEBUG_MSG_FLOW 
XCOM_DEBUG_MSG_FLOW 
GCS_INVALID_DEBUG 
GCS_DEBUG_ALL 
GCS_DEBUG_NONE 
GCS_DEBUG_BASIC 
GCS_DEBUG_TRACE 
XCOM_DEBUG_BASIC 
XCOM_DEBUG_TRACE 
GCS_DEBUG_MSG_FLOW 
XCOM_DEBUG_MSG_FLOW 
GCS_INVALID_DEBUG 
GCS_DEBUG_ALL 

◆ xcom_log_level_t

Enumerator
XCOM_LOG_FATAL 
XCOM_LOG_ERROR 
XCOM_LOG_WARN 
XCOM_LOG_INFO 

Variable Documentation

◆ xcom_log_levels

const char* const xcom_log_levels[]
static
Initial value:
= {
"[MYSQL_XCOM_FATAL] ", "[MYSQL_XCOM_ERROR] ", "[MYSQL_XCOM_WARN] ",
"[MYSQL_XCOM_INFO] "}