26#ifndef MYSQL_HARNESS_EVENTLOG_PLUGIN_INCLUDED
27#define MYSQL_HARNESS_EVENTLOG_PLUGIN_INCLUDED
31#include "mysql/harness/plugin.h"
62 bool create_registry_entries =
true,
68 void reopen(
const std::string dst [[maybe_unused]] =
"")
override {}
Windows specific logging handler(sink) that writes the logs to the Windows eventlog.
Definition: eventlog_plugin.h:41
void do_log(const mysql_harness::logging::Record &record) noexcept override
Log message handler primitive.
Definition: eventlog_plugin.cc:162
~EventlogHandler() override
Definition: eventlog_plugin.cc:160
HANDLE event_src_
Definition: eventlog_plugin.h:73
const std::string event_source_name_
Definition: eventlog_plugin.h:75
EventlogHandler(bool format_messages, mysql_harness::logging::LogLevel level, bool create_registry_entries=true, const std::string event_source_name=kDefaultEventSourceName)
Constructor.
Definition: eventlog_plugin.cc:143
void reopen(const std::string dst="") override
Request to reopen underlying log sink.
Definition: eventlog_plugin.h:68
static constexpr const char * kDefaultName
Definition: eventlog_plugin.h:43
Base class for log message handler.
Definition: handler.h:50
mysql_harness::Plugin harness_plugin_eventlog
Definition: eventlog_plugin.h:35
constexpr const char * kDefaultEventSourceName
Definition: eventlog_plugin.h:34
constexpr const char * kEventlogPluginName
Definition: eventlog_plugin.h:33
Logging interface for using and extending the logging subsystem.
static int record
Definition: mysqltest.cc:188
LogLevel
Log level values.
Definition: logging.h:96
Log record containing information collected by the logging system.
Definition: logging.h:183
#define HANDLE
Definition: violite.h:159