25#ifndef MYSQL_HARNESS_EVENTLOG_PLUGIN_INCLUDED
26#define MYSQL_HARNESS_EVENTLOG_PLUGIN_INCLUDED
30#include "mysql/harness/plugin.h"
61 bool create_registry_entries =
true,
67 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:40
void do_log(const mysql_harness::logging::Record &record) noexcept override
Log message handler primitive.
Definition: eventlog_plugin.cc:161
~EventlogHandler() override
Definition: eventlog_plugin.cc:159
HANDLE event_src_
Definition: eventlog_plugin.h:72
const std::string event_source_name_
Definition: eventlog_plugin.h:74
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:142
void reopen(const std::string dst="") override
Request to reopen underlying log sink.
Definition: eventlog_plugin.h:67
static constexpr const char * kDefaultName
Definition: eventlog_plugin.h:42
Base class for log message handler.
Definition: handler.h:49
mysql_harness::Plugin harness_plugin_eventlog
Definition: eventlog_plugin.h:34
constexpr const char * kDefaultEventSourceName
Definition: eventlog_plugin.h:33
constexpr const char * kEventlogPluginName
Definition: eventlog_plugin.h:32
Logging interface for using and extending the logging subsystem.
static int record
Definition: mysqltest.cc:187
LogLevel
Log level values.
Definition: logging.h:95
Log record containing information collected by the logging system.
Definition: logging.h:182
#define HANDLE
Definition: violite.h:158