Log Management

On the System Log tab page, perform the following steps to view system runtime logs.

  • System logs cannot be deleted in the MindStudio GUI. To manage logs, perform the following operations:
    • RC scenario: Log in to the device as the root user and manage logs in the /var/log/npu/slog directory.
    • EP scenario: Log in to the system as the SSH user and manage logs in the $HOME/ascend/log/ directory.
  • Before viewing system logs, you need to add a device.
  • For a Windows server that has a chip installed, the log flush path is C:\Program Files\Huawei\Ascend\alog\device-{device-id}. You need to log in to the server to manage logs.
  1. In the Log window in MindStudio, click the System Log tab page. In the device list, click a device to expand the log list of the device.
    Figure 1 Log list (RC scenario)
    Figure 2 Log list (EP scenario)
  2. Double-click a log file in the log list. The log content is displayed.

    Only the most recent 5000 log messages are displayed, and the maximum size of each log file is 1 MB.

    Figure 3 System Log tab page (RC scenario)
    Figure 4 System Log tab page (EP scenario)
  3. On the System Log tab page, click the following icons as required:
    • : searches for log messages by keyword.
    • : clears the displayed log messages.
    • : opens a log file. All the log contents of the log file are displayed.
    • : opens the local path where the log file is downloaded on the device in the IDE.