Overview
ob_log_level specifies the log level for the current session. If this parameter is not specified, the system log level is used.
Privilege requirements
Query variables
Global level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Session level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.SESSION_VARIABLESview to view the values of session system variables.
Modify variables
Global effective
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Session expiration
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Varchar |
| Default Value | disabled: Session-level logging is disabled. |
| Value range |
|
| Effective Scope |
|
| Modifiable | Yes, you can use theSETStatement modification. |
Usage instructions
When ob_log_level is set to disabled, the system's global log level is used, which is controlled by the parameter syslog_level.
Configuration example
Set the session-level log level to INFO.
Session Validity Period
obclient> SET ob_log_level ='INFO';Effective globally
obclient> SET GLOBAL ob_log_level ='INFO';
References
For more information about system logs, see Log overview