26#ifndef MYSQL_HARNESS_LOGGER_LOGGER_INCLUDED
27#define MYSQL_HARNESS_LOGGER_LOGGER_INCLUDED
29#include "harness_export.h"
57 void attach_handler(std::string
name);
58 void detach_handler(std::string
name,
bool handler_must_exist =
true);
73 bool is_handled(
LogLevel level)
const;
79 precision_ = precision;
Logger class.
Definition: logger.h:49
const Registry * registry_
Definition: logger.h:87
std::set< std::string > handlers_
Definition: logger.h:86
LogLevel get_level() const
Definition: logger.h:77
LogLevel level_
Definition: logger.h:84
void set_level(LogLevel level)
Definition: logger.h:76
const std::set< std::string > & get_handler_names() const
Definition: logger.h:74
Logger()
Definition: logger.h:55
LogTimestampPrecision precision_
Definition: logger.h:85
LogTimestampPrecision get_timestamp_precision() const
Definition: logger.h:81
void set_timestamp_precision(LogTimestampPrecision precision)
Definition: logger.h:78
Definition: registry.h:47
Logging interface for using and extending the logging subsystem.
static int record
Definition: mysqltest.cc:188
const LogLevel kDefaultLogLevel
Default log level used by the router.
Definition: logging.h:146
LogLevel
Log level values.
Definition: logging.h:96
LogTimestampPrecision
Log timestamp precision values.
Definition: logging.h:161
static int handle(int sql_errno, const char *sqlstate, const char *message, void *state)
Bridge function between the C++ API offered by this module and the C API of the parser service.
Definition: services.cc:64
case opt name
Definition: sslopt-case.h:33
Log record containing information collected by the logging system.
Definition: logging.h:183