OceanBase Database controls the log data to be written to log files based on the log generation levels that you set for the log module.
Log generation levels
The default log generation level of the observer.log, observer.log.wf, election.log, election.log.wf, rootservice.log, and rootservice.log.wf log files is WDIAG. That is, only log data at the WDIAG and higher levels is recorded in these log files.
Query the current log generation level
You can execute the SHOW PARAMETERS statement to query the current log generation level.
obclient> SHOW PARAMETERS LIKE '%syslog_level%';
+-------+----------+-----------------+----------+--------------+-----------+-------+------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+-------------------+
| zone | svr_type | svr_ip | svr_port | name | data_type | value | info | section | scope | source | edit_level |
+-------+----------+-----------------+----------+--------------+-----------+-------+------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+-------------------+
| zone1 | observer | XXX.XXX.XXX.XXX | 2882 | syslog_level | NULL | WDIAG | specifies the current level of logging for obesi. There are DEBUG, TRACE, WDIAG, EDIAG, INFO, WARN, ERROR, seven different log levels. | OBSERVER | CLUSTER | DEFAULT | DYNAMIC_EFFECTIVE |
+-------+----------+-----------------+----------+--------------+-----------+-------+------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+-------------------+
1 row in set
Description
The SHOW PARAMETERS statement does not return the log generation level that you set by using KILL statements.