26#ifndef MYSQL_HARNESS_COMPONENTLOG_PLUGIN_INCLUDED
27#define MYSQL_HARNESS_COMPONENTLOG_PLUGIN_INCLUDED
29#include "harness_export.h"
34#include "mysql/harness/plugin.h"
53 format_messages, level,
63 void reopen(
const std::string )
override {}
65 static void init_log_service(
SERVICE_TYPE(log_builtins) * log_builtins_ptr,
67 log_builtins_string_ptr);
72 static loglevel log_level_to_component_log_level(
Specific logging handler(sink) that writes the logs using the Component Logging primitives.
Definition: componentlog_plugin.h:47
ComponentlogHandler(ComponentlogHandler &&)=delete
~ComponentlogHandler() override=default
ComponentlogHandler & operator=(ComponentlogHandler &&)=delete
ComponentlogHandler(const ComponentlogHandler &)=delete
void reopen(const std::string) override
Request to reopen underlying log sink.
Definition: componentlog_plugin.h:63
ComponentlogHandler(bool format_messages=true, mysql_harness::logging::LogLevel level=mysql_harness::logging::LogLevel::kNotSet)
Definition: componentlog_plugin.h:49
static bool is_initialized()
Definition: componentlog_plugin.h:68
static bool s_inited
Definition: componentlog_plugin.h:75
ComponentlogHandler & operator=(const ComponentlogHandler &)=delete
Base class for log message handler.
Definition: handler.h:50
virtual void do_log(const Record &record)=0
Log message handler primitive.
constexpr const char kComponentlogPluginName[]
Definition: componentlog_plugin.h:36
mysql_harness::Plugin harness_plugin_componentlog
Definition: componentlog_plugin.cc:111
Logging interface for using and extending the logging subsystem.
loglevel
Definition: my_loglevel.h:41
static int record
Definition: mysqltest.cc:195
LogLevel
Log level values.
Definition: logging.h:90
LogTimestampPrecision
Log timestamp precision values.
Definition: logging.h:160
Singleton class that stores the application type.
Definition: component_application_type_name.h:31
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76
Log record containing information collected by the logging system.
Definition: logging.h:182