MySQL 8.4.2
Source Code Documentation
Gcs_gr_logger_impl Class Reference

Group Replication implementation of Logger_interface. More...

#include <gcs_logger.h>

Inheritance diagram for Gcs_gr_logger_impl:
[legend]

Public Member Functions

 Gcs_gr_logger_impl ()=default
 Constructor. More...
 
 ~Gcs_gr_logger_impl () override=default
 Destructor. More...
 
enum_gcs_error initialize () override
 Initialize the logger. More...
 
enum_gcs_error finalize () override
 Finalize the logger. More...
 
void log_event (const gcs_log_level_t level, const std::string &message) override
 Log a message using the specified level. More...
 
- Public Member Functions inherited from Logger_interface
 ~Logger_interface () override=default
 Define a virtual destructor as instances of this interface can be polymorphically used. More...
 
- Public Member Functions inherited from Common_interface
virtual ~Common_interface ()=default
 Define a virtual destructor as instances of this interface can be polymorphically used. More...
 

Private Member Functions

 Gcs_gr_logger_impl (Gcs_gr_logger_impl &l)
 
Gcs_gr_logger_imploperator= (const Gcs_gr_logger_impl &l)
 

Detailed Description

Group Replication implementation of Logger_interface.

Once a instance of this logger is set at Gcs_interface, all log produced by MySQL GCS will be routed by this logger to MySQL error log.

Constructor & Destructor Documentation

◆ Gcs_gr_logger_impl() [1/2]

Gcs_gr_logger_impl::Gcs_gr_logger_impl ( )
default

Constructor.

◆ ~Gcs_gr_logger_impl()

Gcs_gr_logger_impl::~Gcs_gr_logger_impl ( )
overridedefault

Destructor.

◆ Gcs_gr_logger_impl() [2/2]

Gcs_gr_logger_impl::Gcs_gr_logger_impl ( Gcs_gr_logger_impl l)
private

Member Function Documentation

◆ finalize()

enum_gcs_error Gcs_gr_logger_impl::finalize ( )
overridevirtual

Finalize the logger.

Returns
the operation status
Return values
GCS_OKSuccess
GCS_NOKError

Implements Common_interface.

◆ initialize()

enum_gcs_error Gcs_gr_logger_impl::initialize ( )
overridevirtual

Initialize the logger.

Returns
the operation status
Return values
GCS_OKSuccess
GCS_NOKError

Implements Common_interface.

◆ log_event()

void Gcs_gr_logger_impl::log_event ( const gcs_log_level_t  level,
const std::string &  message 
)
overridevirtual

Log a message using the specified level.

Parameters
[in]levellogging level of message
[in]messagethe message to log

Implements Logger_interface.

◆ operator=()

Gcs_gr_logger_impl & Gcs_gr_logger_impl::operator= ( const Gcs_gr_logger_impl l)
private

The documentation for this class was generated from the following files: