Note
ob_log_level is available starting with V1.4.
Description
ob_log_level specifies the log level for a session. If this variable is not specified, the log level of the system is used.
Privilege requirements
Query variables
Global level
Both the
systenant and user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle mode) orinformation_schema.GLOBAL_VARIABLES(MySQL mode) to query the value of a global system variable.Session level
Both the
systenant and user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle mode) orinformation_schema.SESSION_VARIABLES(MySQL mode) to query the value of a session system variable.
Modify variables
Global level
The
systenant can directly modify the value of a global system variable.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session level
The
systenant and user tenants can directly modify the value of a session system variable in their own tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Varchar |
| Default value | disabled, which indicates that the session-level log level is disabled. |
| Valid values |
|
| Effective scope |
|
| Modifiable | Yes. You can modify this variable by using the SET statement. |
Usage
If the value of ob_log_level is disabled, the system uses the global log level, which is controlled by the syslog_level parameter.
Examples
Set the session-level log level 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