MySQL 8.0.32
Source Code Documentation
logger_plugin.h File Reference
#include <array>
#include "harness_export.h"
#include "mysql/harness/loader_config.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/logging/registry.h"
#include "mysql/harness/plugin.h"

Go to the source code of this file.

Functions

void HARNESS_EXPORT create_plugin_loggers (const mysql_harness::LoaderConfig &config, mysql_harness::logging::Registry &registry, const mysql_harness::logging::LogLevel level)
 Creates the logging handler for each plugin from the configuration. More...
 

Variables

constexpr const char * kLoggerPluginName = "logger"
 
mysql_harness::Plugin HARNESS_EXPORT harness_plugin_logger
 

Function Documentation

◆ create_plugin_loggers()

void HARNESS_EXPORT create_plugin_loggers ( const mysql_harness::LoaderConfig config,
mysql_harness::logging::Registry registry,
const mysql_harness::logging::LogLevel  level 
)

Creates the logging handler for each plugin from the configuration.

Parameters
configconfiguration containing the plugin names we should create loggers for
registrylogging registry where the logging handlers should be created
levellogging level for the newly create logging handlers
Exceptions
std::logic_error

Variable Documentation

◆ harness_plugin_logger

mysql_harness::Plugin HARNESS_EXPORT harness_plugin_logger
extern

◆ kLoggerPluginName

constexpr const char* kLoggerPluginName = "logger"
constexpr