Note
This variable is available starting with V1.4.
Description
ob_log_level specifies the log level for the current session. If you do not specify a value, the system log level is used.
Privilege requirements
Query variables
Global level
You can execute the
SHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle-compatible mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL-compatible mode) to view the value of a global system variable in thesystenant and all user tenants.Session level
You can execute the
SHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle-compatible mode) or theinformation_schema.SESSION_VARIABLESview (MySQL-compatible mode) to view the value of a session system variable in thesystenant and all user tenants.
Modify variables
Global level
In the
systenant, you can directly modify the value of a global system variable.In a MySQL user tenant, you must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.In an Oracle user tenant, you must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session level
You can directly modify the value of a session system variable in the
systenant and all user tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Varchar |
| Default value | disabled, which indicates that the log level for the session is disabled. |
| Value range |
|
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Usage notes
If the value of ob_log_level is disabled, the global log level is used, which is controlled by the syslog_level parameter.
Examples
Set the log level for the session to INFO.
Session level
obclient> SET ob_log_level ='INFO';Global level
obclient> SET GLOBAL ob_log_level ='INFO';
References
For more information about system logs, see Overview.