Log Overview
Log Types
Logs record the running process and exception information of a system and support troubleshooting in system running and program debugging during development. Logs are classified into the following types:
- System logs that record OS events on the device, including:
- System logs of the Ctrl CPU (kernel-mode logs and user-mode logs generated during system process running), which reflect the overall running status of the SoC.
- System logs of the non-Ctrl CPU (for example, low-power electronics), which reflect the running status of components such as the low-power electronics, Task Scheduler, and ISP.
- App logs that are generated at app runtime, including:
- Logs printed by components such as AscendCL, GE, Runtime, and HCCL on the host.
- Logs printed by the AI CPU process on the device.
Log Format
A log example is as follows:
[ERROR] TEFUSION(12940,atc):2021-10-17-05:54:07.599.074 [tensor_engine/te_fusion/pywrapper.cc:33]InitPyLogger Failed to import te.platform.log_util
The log format is as follows:
[Level] ModuleName(PID,PName):DateTimeMS [FileName:LineNumber]LogContent
Field |
Description |
|---|---|
Level |
Log level. The options are as follows: ERROR, WARNING, INFO, DEBUG, and EVENT |
ModuleName |
Name of the module that generates a log |
PID |
Module process ID |
PName |
Name of a module process |
DateTimeMS |
Time when a log is printed, formatted as: yyyy-mm-dd-hh:mm:ss.fff.zzz (year-month-day-hour:minute:second:millisecond:microsecond) |
FileName:LineNumber |
File name and the corresponding line number that calls the log printing API |
LogContent |
Detailed log content of each module |
