MySQL 8.4.2
Source Code Documentation
Logger_interface Class Referenceabstract

Logger interface that must be used to define a logger object. More...

#include <gcs_logging.h>

Inheritance diagram for Logger_interface:
[legend]

Public Member Functions

 ~Logger_interface () override=default
 Define a virtual destructor as instances of this interface can be polymorphically used. More...
 
virtual void log_event (const gcs_log_level_t level, const std::string &message)=0
 The purpose of this method is to deliver to the logging system any message to be logged. 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...
 
virtual enum_gcs_error initialize ()=0
 The purpose of this method is to initialize resources used by the objects that implement this interface. More...
 
virtual enum_gcs_error finalize ()=0
 The purpose of this method is to free any resources used by the objects that implement this interface. More...
 

Detailed Description

Logger interface that must be used to define a logger object.

Constructor & Destructor Documentation

◆ ~Logger_interface()

Logger_interface::~Logger_interface ( )
overridedefault

Define a virtual destructor as instances of this interface can be polymorphically used.

Member Function Documentation

◆ log_event()

virtual void Logger_interface::log_event ( const gcs_log_level_t  level,
const std::string &  message 
)
pure virtual

The purpose of this method is to deliver to the logging system any message to be logged.

Parameters
[in]levellogging level of message
[in]messagethe message to be logged

Implemented in Gcs_gr_logger_impl, and Gcs_default_logger.


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