Viewing the Log Configuration File
This section describes the device-side log configuration file. This file records the log level, log output path, total number, and single log file size of system logs on the device.
For the
Overall Configuration Description
- The log configuration files are stored in the following directory on the device:
Atlas 200I/500 A2 inference product : /etc/slog.conf
- In multi-user scenarios, the configuration file can only be modified by the running user of the log process.
- Modify log configuration options based on the recommended values or value ranges described in the related table. Otherwise, system exceptions may occur.
- Manually modify the device-side configuration file and restart the slogd process for the modification to take effect. For details about how to restart the log process, see Restarting Log Processes.
Configuration Options in the slog.conf File
Configuration Option |
Description |
|---|---|
global_level |
Global log level. Only debug logs are supported. The options are as follows:
|
enableEvent |
Event logging enable:
|
SLOG, IDEDD, DVPP ... |
Log level of each module on Ctrl CPU:
NOTE:
|
TS, TSDUMP... |
Log level of each module on non-Ctrl CPUs:
NOTE:
|
DeviceOsMaxFileNum |
Number of device-os_*.log files stored in the debug/device-os directory. If the number of stored files is greater than the configured value, new log files overwrite the earliest ones. |
DeviceOsMaxFileSize |
Size of a device-os_*.log file in the debug/device-os directory. If the file size is greater than the configured value, a new log file is generated. NOTE:
You can adjust the size based on the actual situation. If the configured value is smaller than 1 (MB), the size 1 (MB) is used by default. |
DeviceOsNdebugMaxFileNum |
Number of device-os_*.log files stored in the run/device-os or security/device-os directory. If the number of stored files is greater than the configured value, new log files overwrite the earliest ones. |
DeviceOsNdebugMaxFileSize |
Maximum size of a device-os_*.log file in the run/device-os or security/device-os directory. If the size of a log file exceeds the maximum, a new log file is generated. NOTE:
You can adjust the size based on the actual situation. If the configured value is smaller than 1 (MB), the size 1 (MB) is used by default. |
DeviceMaxFileNum |
Number of device-id_*.log files stored in the device-id directory. If the number of stored files is greater than the configured value, new log files overwrite the earliest ones. |
DeviceMaxFileSize |
Size of a device-id_*.log file in the device-id directory. If the file size is greater than the configured value, a new log file is generated. NOTE:
You can adjust the size based on the actual situation. If the configured value is smaller than 1 (MB), the size 1 (MB) is used by default. |
DeviceAppDirNums |
Number of saved device-app-pid directories. |
DeviceAppMaxFileNum |
Number of device-app-pid_*.log files stored in each device-app-pid directory. If the number of stored files is greater than the configured value, new log files overwrite the earliest ones. |
DeviceAppMaxFileSize |
Size of a device-app-pid_*.log file in each device-app-pid directory. If the file size is greater than the configured value, a new log file is generated. |
SysLogBufSize |
Buffer size of the system log device-os_*.log. |
AppLogBufSize |
Buffer size of the application log device-app-pid_*.log. |
logAgentFileDir |
Log file path. To modify this path, ensure that the user running the log process has read and write permissions for the path. NOTE:
|
permission_for_all |
Whether to allow a user of a group different from the slogd running user to write logs during app execution.
|