MySQL 8.0.31
Source Code Documentation
registry.h File Reference
#include "harness_export.h"
#include "mysql/harness/config_parser.h"
#include "mysql/harness/filesystem.h"
#include "mysql/harness/logging/logger.h"
#include "mysql/harness/logging/logging.h"
#include <atomic>
#include <map>
#include <mutex>
#include <stdexcept>
#include <string>

Go to the source code of this file.

Classes

class  mysql_harness::logging::Registry
 

Namespaces

namespace  mysql_harness
 
namespace  mysql_harness::logging
 

Functions

HARNESS_EXPORT LogLevel mysql_harness::logging::log_level_from_string (std::string name)
 Converts string with log level description to LogLevel type. More...
 
HARNESS_EXPORT LogLevel mysql_harness::logging::get_default_log_level (const Config &config, bool raw_mode=false)
 Get default log level. More...
 
HARNESS_EXPORT std::string mysql_harness::logging::get_default_log_filename (const Config &config)
 Get default log filename. More...
 
HARNESS_EXPORT void mysql_harness::logging::attach_handler_to_all_loggers (Registry &registry, std::string name)
 Attach handler to all loggers. More...
 
HARNESS_EXPORT void mysql_harness::logging::set_log_level_for_all_loggers (Registry &registry, LogLevel level)
 Set log levels for all the loggers to specified value. More...
 
HARNESS_EXPORT void mysql_harness::logging::set_log_level_for_all_handlers (const Registry &registry, LogLevel level)
 Set log levels for all handlers to specified value. More...
 
HARNESS_EXPORT LogTimestampPrecision mysql_harness::logging::log_timestamp_precision_from_string (std::string name)
 Converts string with log timestamp precision description to LogTimestampPrecision type. More...
 
HARNESS_EXPORT LogTimestampPrecision mysql_harness::logging::get_default_timestamp_precision (const Config &config)
 Get default timestamp precision. More...
 
HARNESS_EXPORT void mysql_harness::logging::set_timestamp_precision_for_all_loggers (Registry &registry, LogTimestampPrecision precision)
 Set timestamp precision for all the loggers. More...
 
HARNESS_EXPORT void mysql_harness::logging::clear_registry (Registry &registry)
 Clear registry. More...
 
HARNESS_EXPORT void mysql_harness::logging::create_module_loggers (Registry &registry, const LogLevel level, const std::list< std::string > &modules, const std::string &main_app_log_domain)
 Initialize logging facility. More...
 
HARNESS_EXPORT void mysql_harness::logging::create_logger (Registry &registry, const LogLevel level, const std::string &logger_name)
 
HARNESS_EXPORT void mysql_harness::logging::create_main_log_handler (Registry &registry, const std::string &program, const std::string &logging_folder, bool format_messages, bool use_os_log=false)
 Initialize logfile handler. More...
 
HARNESS_EXPORT void mysql_harness::logging::set_log_level_for_all_loggers (LogLevel level)
 Set log level for all registered loggers. More...
 
HARNESS_EXPORT void mysql_harness::logging::set_log_level_for_all_handlers (LogLevel level)
 Set log level for all registered handlers. More...
 
HARNESS_EXPORT void mysql_harness::logging::set_timestamp_precison_for_all_loggers (LogTimestampPrecision precision)
 Set timestamp precision for all registered loggers. More...
 
HARNESS_EXPORT void mysql_harness::logging::register_handler (std::string name, std::shared_ptr< Handler > handler)
 Register handler for all plugins. More...
 
HARNESS_EXPORT void mysql_harness::logging::unregister_handler (std::string name)
 Unregister a handler. More...
 
HARNESS_EXPORT std::ostream * mysql_harness::logging::get_default_logger_stream ()
 Returns pointer to the default logger sink stream. More...