Setting Zenarmor Log Level and Rotation on Zenconsole
To configure Log level and log rotation options, you may follow the steps given below:
- Select your node on Zenconsole.
- Click Settings menu on the left-hand sidebar.
- Click Logging menu.
Figure 1. Configuring log level and log rotation
On the Logging page, you can select the log level, rotation, and retire for the log file.
You may easily complete Zenarmor Log configuration by following the next instructions:
- Select the Log Level depending on your requirement from the Level drop-down menu. The default level is
Info
. - Select the Log Rotation from Rotation drop-down menu.
- Select the Retire option considering your log and disk sizes.
- Click Save button to activate the settings.
There are 5 types of Log levels listed below:
-
INFO : the standard log level indicating that something happened, the application entered a certain state.
-
CRITICAL: tells that the application encountered an event or entered a state in which one of the crucial business functionality is no longer working.
-
ERROR: tells that the application hits an issue preventing one or more functionalities from properly functioning.
-
WARNING: indicates that something unexpected happened in the application, a problem, or a situation that might disturb one of the processes. But that doesn't mean that the application failed.
-
DEBUG: DEBUG log level should be used for information that may be needed for diagnosing issues and troubleshooting. There are 5 levels available for debugging purposes:
- DEBUG
- DEBUG2
- DEBUG3
- DEBUG4
Figure 2. Zenarmor Log levels on Zenconsole
There are 3 options for log rotation and the default is 1 Day
:
-
1 Hour
-
1 Day
-
1 Week
Figure 3. Available Log rotation options for Zenarmor on Zenconsole
Be careful that log files could eventually consume all available disk space on a system if they were not rotated, and pruned on a regular basis.
Using the Retire option, you may choose a time period for the logs to be deleted. Log files are automatically deleted after three (3) days by default. You may erase log files right away if you need to in an emergency by clicking on the Delete Now button.
Figure 4. Log Retire options for Zenarmor on Zenconsole