MySQL 26.10.0
Source Code Documentation
health_monitor_log.h File Reference
#include <string>
#include "component_log.h"
#include "health_monitor.h"
#include "mysqld_error.h"

Go to the source code of this file.

Classes

class  hm::Log
 

Namespaces

namespace  hm
 

Macros

#define log_diag(msg, ...)
 
#define log_info(msg, ...)
 
#define log_warning(msg, ...)
 
#define log_error(msg, ...)
 
#define log_warn_usage(msgno, ...)
 

Functions

std::string hm::bool_to_string (bool value, std::string &if_true, std::string &if_false)
 
std::string hm::on_off (bool value)
 
std::string hm::true_false (bool value)
 

Variables

const std::string hm::eq {"="}
 

Macro Definition Documentation

◆ log_diag

#define log_diag (   msg,
  ... 
)
Value:
ER_DIAG_LOG_STRING, msg, \
##__VA_ARGS__)
static Log * log() noexcept
Definition: health_monitor.h:80
void log_message(enum_log_type log_type, long long level, long long code, const char *msg,...)
Emits information entry into the system log.
Definition: health_monitor_log.cc:46
@ LOG_TYPE_DIAG
Definition: log_shared.h:73
@ INFORMATION_LEVEL
Definition: my_loglevel.h:45

◆ log_error

#define log_error (   msg,
  ... 
)
Value:
LOG_TYPE_ERROR, ERROR_LEVEL, ER_HEALTH_ERROR, msg, ##__VA_ARGS__)
@ LOG_TYPE_ERROR
Definition: log_shared.h:68
@ ERROR_LEVEL
Definition: my_loglevel.h:43

◆ log_info

#define log_info (   msg,
  ... 
)
Value:
ER_HEALTH_INFO, msg, ##__VA_ARGS__)

◆ log_warn_usage

#define log_warn_usage (   msgno,
  ... 
)
Value:
##__VA_ARGS__)
void log_message_lu(long long level, long long code, Args... args)
Definition: health_monitor_log.h:57
@ WARNING_LEVEL
Definition: my_loglevel.h:44

◆ log_warning

#define log_warning (   msg,
  ... 
)
Value:
LOG_TYPE_ERROR, WARNING_LEVEL, ER_HEALTH_WARNING, msg, ##__VA_ARGS__)