MySQL 8.0.32
Source Code Documentation
logger_plugin.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2018, 2022, Oracle and/or its affiliates.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License, version 2.0,
6 as published by the Free Software Foundation.
7
8 This program is also distributed with certain software (including
9 but not limited to OpenSSL) that is licensed under separate terms,
10 as designated in a particular file or component or in included license
11 documentation. The authors of MySQL hereby grant you an additional
12 permission to link the program and your derivative works with the
13 separately licensed software that they have included with MySQL.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23*/
24
25#ifndef MYSQL_HARNESS_LOGGER_PLUGIN_INCLUDED
26#define MYSQL_HARNESS_LOGGER_PLUGIN_INCLUDED
27
28#include <array>
29
30#include "harness_export.h"
34#include "mysql/harness/plugin.h"
35
36constexpr const char *kLoggerPluginName = "logger";
37extern mysql_harness::Plugin HARNESS_EXPORT harness_plugin_logger;
38
39/**
40 * Creates the logging handler for each plugin from the configuration.
41 *
42 * @param config configuration containing the plugin names we should create
43 * loggers for
44 * @param registry logging registry where the logging handlers should be
45 * created
46 * @param level logging level for the newly create logging handlers
47 *
48 * @throws std::logic_error
49 */
50void HARNESS_EXPORT
54
55#endif
Configuration file handler for the loader.
Definition: loader_config.h:45
Definition: registry.h:46
constexpr const char * kLoggerPluginName
Definition: logger_plugin.h:36
mysql_harness::Plugin HARNESS_EXPORT harness_plugin_logger
Definition: logger_plugin.cc:426
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.
Definition: logger_plugin.cc:240
Logging interface for using and extending the logging subsystem.
LogLevel
Log level values.
Definition: logging.h:95