25#ifndef MYSQL_HARNESS_LOGGER_LOGGER_INCLUDED
26#define MYSQL_HARNESS_LOGGER_LOGGER_INCLUDED
28#include "harness_export.h"
56 void attach_handler(std::string
name);
57 void detach_handler(std::string
name,
bool handler_must_exist =
true);
72 bool is_handled(
LogLevel level)
const;
78 precision_ = precision;
Logger class.
Definition: logger.h:48
const Registry * registry_
Definition: logger.h:86
std::set< std::string > handlers_
Definition: logger.h:85
LogLevel get_level() const
Definition: logger.h:76
LogLevel level_
Definition: logger.h:83
void set_level(LogLevel level)
Definition: logger.h:75
const std::set< std::string > & get_handler_names() const
Definition: logger.h:73
Logger()
Definition: logger.h:54
LogTimestampPrecision precision_
Definition: logger.h:84
LogTimestampPrecision get_timestamp_precision() const
Definition: logger.h:80
void set_timestamp_precision(LogTimestampPrecision precision)
Definition: logger.h:77
Definition: registry.h:46
Logging interface for using and extending the logging subsystem.
static int record
Definition: mysqltest.cc:194
const LogLevel kDefaultLogLevel
Default log level used by the router.
Definition: logging.h:145
LogLevel
Log level values.
Definition: logging.h:95
LogTimestampPrecision
Log timestamp precision values.
Definition: logging.h:160
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:63
case opt name
Definition: sslopt-case.h:32
Log record containing information collected by the logging system.
Definition: logging.h:182