MySQL 8.4.2
Source Code Documentation
gcs_logging.h File Reference
#include <atomic>
#include <cstdint>
#include <string>
#include "plugin/group_replication/libmysqlgcs/include/mysql/gcs/gcs_types.h"

Go to the source code of this file.

Classes

class  Common_interface
 Common interface that is used to define the sink and logger interfaces. More...
 
class  Sink_interface
 Common sink that may be shared by the logging and debugging systems. More...
 
class  Logger_interface
 Logger interface that must be used to define a logger object. More...
 
class  Gcs_log_manager
 This class sets up and configures the logging infrastructure, storing the logger to be used by the application as a singleton. More...
 
class  Gcs_debug_options
 

Macros

#define GCS_XCOM_DEBUG_INFORMATION
 

Enumerations

enum  gcs_log_level_t { GCS_FATAL = 0 , GCS_ERROR = 1 , GCS_WARN = 2 , GCS_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 gcs_log_levels []
 
static const char *const gcs_xcom_debug_strings []
 

Macro Definition Documentation

◆ GCS_XCOM_DEBUG_INFORMATION

#define GCS_XCOM_DEBUG_INFORMATION

Enumeration Type Documentation

◆ gcs_log_level_t

Enumerator
GCS_FATAL 
GCS_ERROR 
GCS_WARN 
GCS_INFO 

◆ 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 

Variable Documentation

◆ gcs_log_levels

const char* const gcs_log_levels[]
static
Initial value:
= {
"[MYSQL_GCS_FATAL] ", "[MYSQL_GCS_ERROR] ", "[MYSQL_GCS_WARN] ",
"[MYSQL_GCS_INFO] "}

◆ gcs_xcom_debug_strings

const char* const gcs_xcom_debug_strings[]
static
Initial value:
= {
"GCS_DEBUG_BASIC", "GCS_DEBUG_TRACE", "XCOM_DEBUG_BASIC",
"XCOM_DEBUG_TRACE", "GCS_DEBUG_MSG_FLOW", "XCOM_DEBUG_MSG_FLOW",
"GCS_DEBUG_ALL", "GCS_DEBUG_NONE",
}