---
title: --log
description: "设置算子编译过程中日志的级别。简写为-l。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/opcompiletool/atlasop_compiler_07_0024.html
sourcePath: /source/zh/canncommercial/900/devaids/opcompiletool/atlasop_compiler_07_0024.html
indexId: 89228b2519cfcb5115e57a86453ae9f13968053719e2a5dec1f683a59fcb197781
---
# --log

#### 功能说明

设置算子编译过程中日志的级别。简写为-l。

- 日志落盘
  日志默认落盘到如下路径：$HOME/ascend/log/debug/plog/plog-pid_*.log

  pid代表进程ID，“*”表示该日志文件创建时的时间戳。

- 日志打印
  设置日志级别，开启日志功能后，日志默认不打印，如需打印显示，则请在执行op_compiler命令的当前窗口设置如下环境变量，然后再执行op_compiler命令：

```
export ASCEND_SLOG_PRINT_TO_STDOUT=1
```


#### 关联参数

无。


#### 参数取值

参数值：

- debug：输出debug/info/warning/error/event级别的运行信息。
- info：输出info/warning/error/event级别的运行信息。
- warning：输出warning/error/event级别的运行信息。
- error：输出error/event级别的运行信息。

参数默认值：默认情况下，不输出日志。


#### 推荐配置及收益

无。


#### 示例

```
op_compiler --op_params_dir=
<dump_dir>
--soc_version=
<soc_version>
--log=debug
```


#### 支持的型号

Atlas 推理系列产品

Atlas 训练系列产品

Atlas A2 训练系列产品 / Atlas A2 推理系列产品

Atlas 350 加速卡


#### 依赖约束

无
