MySQL 9.1.0
Source Code Documentation
gcs_basic_logging.h File Reference

Go to the source code of this file.

Classes

class  Gcs_basic_logging
 Class that defines basic logging infra-structure to be used in the test cases, for example. More...
 

Functions

void cb_xcom_logger (const int64_t level, const char *message)
 Callback function used by XCOM to write information, warning and error messages in coordination with the GCS layer. More...
 
void cb_xcom_debugger (const char *format,...)
 Callback function used by XCOM to write debug messages in coordination with the GCS layer. More...
 
int cb_xcom_debugger_check (const int64_t options)
 Callback function used by XCOM to check whether a debug module is enabled or not. More...
 

Function Documentation

◆ cb_xcom_debugger()

void cb_xcom_debugger ( const char *  format,
  ... 
)

Callback function used by XCOM to write debug messages in coordination with the GCS layer.

The variadic signature allows XCOM to call this function without forcing any preliminary processing on the message, meaning that the cost is minimal and there is no need to use an intermediate buffer. The GCS layer will then be responsible for writing the message content directly to the final buffer.

◆ cb_xcom_debugger_check()

int cb_xcom_debugger_check ( const int64_t  options)

Callback function used by XCOM to check whether a debug module is enabled or not.

◆ cb_xcom_logger()

void cb_xcom_logger ( const int64_t  level,
const char *  message 
)

Callback function used by XCOM to write information, warning and error messages in coordination with the GCS layer.