MySQL  8.0.21
Source Code Documentation
log_service.h File Reference

Go to the source code of this file.

Classes

struct  s_mysql_log_service
 

Typedefs

typedef enum enum_log_service_chistics log_service_chistics
 This defines the API used to call functions in logging components. More...
 
typedef struct s_mysql_log_service mysql_service_log_service_t
 

Enumerations

enum  enum_log_service_chistics {
  LOG_SERVICE_UNSPECIFIED = 0, LOG_SERVICE_READ_ONLY = 1, LOG_SERVICE_SINGLETON = 2, LOG_SERVICE_BUILTIN = 4,
  LOG_SERVICE_SOURCE = 128, LOG_SERVICE_FILTER = 256, LOG_SERVICE_SINK = 512, LOG_SERVICE_BUFFER = 1024
}
 This defines the API used to call functions in logging components. More...
 

Typedef Documentation

◆ log_service_chistics

This defines the API used to call functions in logging components.

When implementing such a service, refer to log_service_imp.h instead!

A log service may take the shape of a writer for a specific log format (JSON, XML, traditional MySQL, etc.), it may implement a filter that removes or modifies log_items, etc.

◆ mysql_service_log_service_t

Enumeration Type Documentation

◆ enum_log_service_chistics

This defines the API used to call functions in logging components.

When implementing such a service, refer to log_service_imp.h instead!

A log service may take the shape of a writer for a specific log format (JSON, XML, traditional MySQL, etc.), it may implement a filter that removes or modifies log_items, etc.

Enumerator
LOG_SERVICE_UNSPECIFIED 

We do not have information about this service yet.

LOG_SERVICE_READ_ONLY 

Service is read-only – it guarantees it will not modify the log-event.

This information may later be used to e.g. run log-writers in parallel.

LOG_SERVICE_SINGLETON 

Service is a singleton – it may occur in the log service pipeline only once.

LOG_SERVICE_BUILTIN 

Service is built-in (and can not be INSTALLed/UNINSTALLed.

LOG_SERVICE_SOURCE 

Service is a source.

It adds key/value pairs beyond those in the statement that first created the log-event. Log-sources are not normally READ_ONLY.

LOG_SERVICE_FILTER 

Service is a filter.

A filter should not be the last service in the log service pipeline.

LOG_SERVICE_SINK 

Service is a sink (usually a log-writer).

Sinks will normally not modify the log-event, but be READ_ONLY.

LOG_SERVICE_BUFFER 

Service is a special sink used during start-up that buffers log-events until the log service pipeline is fully set up, at which point we'll flush (that is, filter and prints) the buffered events.

Services flagged this must also be flagged LOG_SERVICE_SINK!