MySQL 9.1.0
Source Code Documentation
|
#include "mysql/harness/logging/eventlog_plugin.h"
#include "eventlog_rc/message.h"
#include "mysql/harness/logging/logger_plugin.h"
#include "mysql/harness/logging/registry.h"
#include "mysql/harness/logging/supported_logger_options.h"
#include "mysql/harness/plugin.h"
#include "scope_guard.h"
#include <Windows.h>
#include <cstdarg>
Functions | |
static WORD | logger_to_eventlog_severity (LogLevel level) |
static void | create_eventlog_registry_entry (const std::string &event_source_name) |
Create a key in the Windows registry. More... | |
Variables | |
constexpr const char * | kRegistryPrefix |
mysql_harness::Plugin | harness_plugin_eventlog |
|
static |
Create a key in the Windows registry.
We'll setup a "MySQL Router" key in the EventLog branch (RegCreateKey), set our executable name (GetModuleFileName) as file-name ("EventMessageFile"), then set the message types we expect to be logging ("TypesSupported"). If the key does not exist, sufficient privileges will be required to create and configure it. If the key does exist, opening it should be unprivileged; modifying will fail on insufficient privileges, but that is non-fatal.
|
static |
mysql_harness::Plugin harness_plugin_eventlog |
|
constexpr |