---
title: 如何查看日志记录
description: "hccn_tool接口命令分为配置类和查询类，日志分别记录在不同的日志文件中。- 配置类命令，对于root用户，日志记录在路径“/var/log/hccn_tool”下的“hccn_config.log”日志文件中。"
url: https://www.hiascend.com/document/detail/zh/HDK/latest/A3/A3HCCN/hccntool_168.html
sourcePath: /source/zh/HDK/2610/A3/A3HCCN/hccntool_168.html
indexId: 8d7c04b54ed28a609c4cd0695e8fab1c89d1407abf14455946bf36c6cbbce59b47
---
# 如何查看日志记录

hccn_tool接口命令分为配置类和查询类，日志分别记录在不同的日志文件中。- 配置类命令，对于root用户，日志记录在路径“/var/log/hccn_tool”下的“hccn_config.log”日志文件中。
- 查询类命令，对于root用户，日志记录在路径“/var/log/hccn_tool”下的“hccn.log”日志文件中，对于非root用户，日志记录在路径“/home/用户名”下的“hccn.log”日志文件中。特殊的查询类命令日志记录在“hccn_config.log”日志文件中，详见具体章节说明。

- 对于root用户，若执行命令出现提示“[WARNING] "/var/log/hccn_tool" is not a directory, hccn_tool logs may be lost.”，请检查日志路径的有效性，即“/var/log/hccn_tool”目录下是否存在hccn_config.log文件或hccn.log文件。
- 对于非root用户，若执行命令出现提示“[WARNING] "/home/用户名" is not a directory, hccn_tool logs may be lost.”，请检查日志路径的有效性，即“/home/用户名”目录下是否存在hccn.log文件。“/home/用户名：例如使用用户名“HwHiAiUser”登录，路径为“/home/HwHiAiUser”。
