#include <log.h>
◆ Error_log_throttle()
Error_log_throttle::Error_log_throttle |
( |
ulong |
window_usecs, |
|
|
loglevel |
lvl, |
|
|
uint |
errcode, |
|
|
const char * |
subsystem, |
|
|
const char * |
msg |
|
) |
| |
|
inline |
- Parameters
-
window_usecs | ... in this many micro-seconds (see Log_throttle) |
lvl | severity of the incident (error, warning, info) |
errcode | MySQL error code (e.g. ER_STARTUP) |
subsystem | subsystem tag, or nullptr for none |
msg | use this message template containing lu as only non-literal (for "number of suppressed events", see Log_throttle) |
◆ flush()
bool Error_log_throttle::flush |
( |
| ) |
|
Prepare and print a summary of suppressed lines to log.
(For now, slow query log.) The summary states the number of queries that were qualified for inclusion in the log, but were not printed because of the rate-limiting.
- Return values
-
false | Logging was not suppressed, no summary needed. |
true | Logging was suppressed; a summary was printed. |
◆ log()
bool Error_log_throttle::log |
( |
| ) |
|
Top-level function.
- Return values
-
true | Logging should be suppressed. |
false | Logging should not be suppressed. |
◆ print_summary()
void Error_log_throttle::print_summary |
( |
ulong |
suppressed | ) |
|
|
inlineprivate |
Actually print the prepared summary to log.
◆ err_code
uint Error_log_throttle::err_code |
|
private |
◆ ll
◆ subsys
const char* Error_log_throttle::subsys |
|
private |
The documentation for this class was generated from the following files: