MySQL 9.1.0
Source Code Documentation
Gcs_mysql_network_provider_util Class Reference

Utilitarian class for Gcs_mysql_network_provider. More...

#include <gcs_mysql_network_provider.h>

Static Public Member Functions

static int log_level_adaptation (int coded_log_level, network_provider_dynamic_log_level log_level)
 Converts from the intended developer fixed level to a dynamic level provided from the API call, based on runtime conditions. More...
 

Static Public Attributes

static constexpr int OUT_OF_RANGE_LOG_LEVEL = 255
 

Static Private Member Functions

static int from_network_provider_dynamic_log_level_mapping (network_provider_dynamic_log_level net_provider_log_level)
 Maps between Network Provider generic log level and MySQL error Log level. More...
 

Detailed Description

Utilitarian class for Gcs_mysql_network_provider.

Member Function Documentation

◆ from_network_provider_dynamic_log_level_mapping()

static int Gcs_mysql_network_provider_util::from_network_provider_dynamic_log_level_mapping ( network_provider_dynamic_log_level  net_provider_log_level)
inlinestaticprivate

Maps between Network Provider generic log level and MySQL error Log level.

Parameters
net_provider_log_levelNetwork Provider generic log level
Returns
int MySQL error Log level if there is mapping OUT_OF_RANGE_LOG_LEVEL, otherwise

◆ log_level_adaptation()

static int Gcs_mysql_network_provider_util::log_level_adaptation ( int  coded_log_level,
network_provider_dynamic_log_level  log_level 
)
inlinestatic

Converts from the intended developer fixed level to a dynamic level provided from the API call, based on runtime conditions.

A developer might code that wants ERROR level to be written to the log, but a runtime condition might modify it.

If log_level is PROVIDED, nothing changes and coded_log_level is used. If log_level is other than PROVIDED, we will do a mapping between log_level and MySQL log level.

For more information about this mechanism

See also
network_provider_dynamic_log_level
Parameters
coded_log_levelDeveloper intended log level
log_levelExternal API call log level
Returns
int the actual runtime log level

Member Data Documentation

◆ OUT_OF_RANGE_LOG_LEVEL

constexpr int Gcs_mysql_network_provider_util::OUT_OF_RANGE_LOG_LEVEL = 255
staticconstexpr

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