MySQL 9.1.0
Source Code Documentation
mysql_harness::logging::DomainLogger Class Reference

#include <logger.h>

Public Member Functions

 DomainLogger ()=default
 
 DomainLogger (std::string domain)
 
void debug (std::invocable auto producer) const
 
void debug (const std::string &msg) const
 
void info (std::invocable auto producer) const
 
void info (const std::string &msg) const
 
void warning (std::invocable auto producer) const
 
void warning (const std::string &msg) const
 
void system (std::invocable auto producer) const
 
void system (const std::string &msg) const
 
void note (std::invocable auto producer) const
 
void note (const std::string &msg) const
 
void error (std::invocable auto producer) const
 
void error (const std::string &msg) const
 
void log (LogLevel log_level, std::function< std::string()> producer) const
 
void log (LogLevel log_level, std::string msg) const
 

Private Member Functions

bool init_logger () const
 

Private Attributes

std::optional< mysql_harness::logging::Loggerlogger_
 
std::string domain_ {MYSQL_ROUTER_LOG_DOMAIN}
 

Constructor & Destructor Documentation

◆ DomainLogger() [1/2]

mysql_harness::logging::DomainLogger::DomainLogger ( )
default

◆ DomainLogger() [2/2]

mysql_harness::logging::DomainLogger::DomainLogger ( std::string  domain)
inline

Member Function Documentation

◆ debug() [1/2]

void mysql_harness::logging::DomainLogger::debug ( const std::string &  msg) const
inline

◆ debug() [2/2]

void mysql_harness::logging::DomainLogger::debug ( std::invocable auto  producer) const
inline

◆ error() [1/2]

void mysql_harness::logging::DomainLogger::error ( const std::string &  msg) const
inline

◆ error() [2/2]

void mysql_harness::logging::DomainLogger::error ( std::invocable auto  producer) const
inline

◆ info() [1/2]

void mysql_harness::logging::DomainLogger::info ( const std::string &  msg) const
inline

◆ info() [2/2]

void mysql_harness::logging::DomainLogger::info ( std::invocable auto  producer) const
inline

◆ init_logger()

bool mysql_harness::logging::DomainLogger::init_logger ( ) const
private

◆ log() [1/2]

void mysql_harness::logging::DomainLogger::log ( LogLevel  log_level,
std::function< std::string()>  producer 
) const

◆ log() [2/2]

void mysql_harness::logging::DomainLogger::log ( LogLevel  log_level,
std::string  msg 
) const

◆ note() [1/2]

void mysql_harness::logging::DomainLogger::note ( const std::string &  msg) const
inline

◆ note() [2/2]

void mysql_harness::logging::DomainLogger::note ( std::invocable auto  producer) const
inline

◆ system() [1/2]

void mysql_harness::logging::DomainLogger::system ( const std::string &  msg) const
inline

◆ system() [2/2]

void mysql_harness::logging::DomainLogger::system ( std::invocable auto  producer) const
inline

◆ warning() [1/2]

void mysql_harness::logging::DomainLogger::warning ( const std::string &  msg) const
inline

◆ warning() [2/2]

void mysql_harness::logging::DomainLogger::warning ( std::invocable auto  producer) const
inline

Member Data Documentation

◆ domain_

std::string mysql_harness::logging::DomainLogger::domain_ {MYSQL_ROUTER_LOG_DOMAIN}
private

◆ logger_

std::optional<mysql_harness::logging::Logger> mysql_harness::logging::DomainLogger::logger_
mutableprivate

The documentation for this class was generated from the following files: