The setup_loggers table lists the
registered loggers and their logging level:
mysql> select * from performance_schema.setup_loggers;
+------------------------+-------+-------------------------+
| NAME | LEVEL | DESCRIPTION |
+------------------------+-------+-------------------------+
| logger/sql/error_log | info | MySQL error logger |
| logger/sql/slow_log | info | MySQL slow query logger |
| logger/sql/general_log | info | MySQL general logger |
+------------------------+-------+-------------------------+
NAME: The name of the logger.This can be one of the following:
logger/sql/error_loglogger/sql/general_logThe General log does not have a log level. All logs are instrumented using
INFO. It is also independent of the existing configuration. For example, iflog_outputorgeneral_logis disabled, general OpenTelemetry logging continues.logger/sql/slow_logThe Slow Query log does not have a log level. All logs are instrumented using
WARN. It is also independent of the existing configuration. For example, iflog_outputorslow_query_logis disabled, Slow Query OpenTelemetry logging continues. Similarly, on replicas, iflog_slow_replica_statementsis disabled, Slow query OpenTelemetry logging continues on the replica.
LEVEL: The log level. This can be set to one of the following values:noneerrorwarninfodebug
DESCRIPTION: A text description of the logger.