MySQL 26.10.0
Source Code Documentation
mrs_component_log.h File Reference

Go to the source code of this file.

Classes

class  mrs_component::Log
 Emits MRS messages through the MySQL Server logging services. More...
 

Namespaces

namespace  mrs_component
 

Macros

#define MRS_LOG_SYSTEM(msg, ...)
 
#define MRS_LOG_INFO(msg, ...)
 
#define MRS_LOG_WARNING(msg, ...)
 
#define MRS_LOG_ERROR(msg, ...)
 
#define MRS_LOG_DEBUG(...)
 

Macro Definition Documentation

◆ MRS_LOG_DEBUG

#define MRS_LOG_DEBUG (   ...)
Value:
do { \
} while (0)

◆ MRS_LOG_ERROR

#define MRS_LOG_ERROR (   msg,
  ... 
)
Value:
do { \
mrs_component().log().log_message(LOG_TYPE_ERROR, ERROR_LEVEL, \
ER_MRS_COMPONENT_ERROR, "%s: " msg, \
mrs_component().name(), ##__VA_ARGS__); \
} while (0)
@ LOG_TYPE_ERROR
Definition: log_shared.h:68
@ ERROR_LEVEL
Definition: my_loglevel.h:43
MRSComponent & mrs_component()
Returns the active MRS component instance.
Definition: mrs_component.cc:178
case opt name
Definition: sslopt-case.h:29

◆ MRS_LOG_INFO

#define MRS_LOG_INFO (   msg,
  ... 
)
Value:
do { \
mrs_component().log().log_message(LOG_TYPE_ERROR, INFORMATION_LEVEL, \
ER_MRS_COMPONENT_INFO, "%s: " msg, \
mrs_component().name(), ##__VA_ARGS__); \
} while (0)
@ INFORMATION_LEVEL
Definition: my_loglevel.h:45

◆ MRS_LOG_SYSTEM

#define MRS_LOG_SYSTEM (   msg,
  ... 
)
Value:
do { \
mrs_component().log().log_message(LOG_TYPE_ERROR, SYSTEM_LEVEL, \
ER_MRS_COMPONENT_MSG, "%s: " msg, \
mrs_component().name(), ##__VA_ARGS__); \
} while (0)
@ SYSTEM_LEVEL
Definition: my_loglevel.h:42

◆ MRS_LOG_WARNING

#define MRS_LOG_WARNING (   msg,
  ... 
)
Value:
do { \
mrs_component().log().log_message(LOG_TYPE_ERROR, WARNING_LEVEL, \
ER_MRS_COMPONENT_WARNING, "%s: " msg, \
mrs_component().name(), ##__VA_ARGS__); \
} while (0)
@ WARNING_LEVEL
Definition: my_loglevel.h:44