If you cannot identify an issue based on the logs whose level is INFO, you can change the level of logs to DEBUG. This topic describes how to change the level of logs for a deployment. This topic also describes the related limits and usage notes.
Background information
The following table describes the supported log levels in ascending order of urgency.
Level | Description |
TRACE | Records finer-grained information than DEBUG logs. |
DEBUG | Records the status of the system. |
INFO | Records important information or information that you want to take note of. |
WARN | Records the information about potential issues. |
ERROR | Records the information about occurred errors and exceptions. |
Limits
You can change the level of logs for a deployment only to the INFO or DEBUG level. If you change the level to a higher level, you may not identify issues based on the logs.
You can change the log level of the JobManager.
You can change only the log level of a single TaskManager at a time. You cannot change the log levels of all TaskManagers at a time. If you want to change the log levels of all TaskManagers, you must separately change the log level of each TaskManager.
Usage notes
After you change the log level to DEBUG, logs at the DEBUG, INFO, WARN, and ERROR levels are displayed.
After you change the log level to INFO, only logs at the INFO, WARN, and ERROR levels are displayed.
After you change the log level, only the new logs that are generated are affected. Existing logs are not affected.
If you set the log level to DEBUG, the performance of the deployment may be affected. If you do not need to identify issues, we recommend that you set the log level to INFO.
Procedure
Log on to the Realtime Compute for Apache Flink console.
find the workspace that you want to manage and click Console in the Actions column.
In the left-side navigation pane, click .
On the Deployments page, find the deployment that you want to manage and click its name.
Click the Logs tab.
In the left-side pane, click the Logs tab and select the deployment that is running from the Job drop-down list.
Change the log level of the JobManager or a TaskManager.
Change the log level of the JobManager
On the Job Manager tab, click the Logs tab.
Click Edit.
In the message that appears, click OK.
Select the log level that you want to set from the Log Level drop-down list.
Click Confirm.
Change the log level of a TaskManager
On the Running Task Managers tab, click the value in the Path, ID column.
Click the Logs tab.
Click Edit.
In the message that appears, click OK.
Select the log level that you want to set from the Log Level drop-down list.
After you change the log level, click Confirm.