Utilitarian class for Gcs_mysql_network_provider.
More...
#include <gcs_mysql_network_provider.h>
Utilitarian class for Gcs_mysql_network_provider.
◆ from_network_provider_dynamic_log_level_mapping()
Maps between Network Provider generic log level and MySQL error Log level.
- Parameters
-
net_provider_log_level | Network Provider generic log level |
- Returns
- int MySQL error Log level if there is mapping OUT_OF_RANGE_LOG_LEVEL, otherwise
◆ log_level_adaptation()
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_level | Developer intended log level |
log_level | External API call log level |
- Returns
- int the actual runtime log level
◆ 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: