From 55c95f777d672f841978e1a80283050eaf7d36a9 Mon Sep 17 00:00:00 2001 From: louei5 Date: Tue, 22 Jun 2021 09:43:45 +0800 Subject: [PATCH] add restriction description for setting environment variables --- .../training/source_en/advanced_use/custom_debugging_info.md | 3 ++- .../source_zh_cn/advanced_use/custom_debugging_info.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tutorials/training/source_en/advanced_use/custom_debugging_info.md b/tutorials/training/source_en/advanced_use/custom_debugging_info.md index 9f6bed8d54..53a4b6c610 100644 --- a/tutorials/training/source_en/advanced_use/custom_debugging_info.md +++ b/tutorials/training/source_en/advanced_use/custom_debugging_info.md @@ -337,7 +337,8 @@ MindSpore uses glog to output logs. The following environment variables are comm The environment variable specifies the log output path. If `GLOG_logtostderr` is set to 0, value of this variable must be specified. If `GLOG_log_dir` is specified and the value of `GLOG_logtostderr` is 1, logs are output to the screen but not to a file. - Logs of C++ and Python will be output to different files. The file name of C++ log complies with the naming rule of `GLOG` log file. Here, the name is `mindspore.MachineName.UserName.log.LogLevel.Timestamp`. The file name of Python log is `mindspore.log`. + Logs of C++ and Python will be output to different files. The file name of C++ log complies with the naming rule of `GLOG` log file. Here, the name is `mindspore.MachineName.UserName.log.LogLevel.Timestamp`. The file name of Python log is `mindspore.log`. + `GLOG_log_dir` can only contains characters such as uppercase letters, lowercase letters, digits, ".", ":", "-", "_", "/" and "\\". - `MS_SUBMODULE_LOG_v` diff --git a/tutorials/training/source_zh_cn/advanced_use/custom_debugging_info.md b/tutorials/training/source_zh_cn/advanced_use/custom_debugging_info.md index ca00b3782f..1b0adc5fa6 100644 --- a/tutorials/training/source_zh_cn/advanced_use/custom_debugging_info.md +++ b/tutorials/training/source_zh_cn/advanced_use/custom_debugging_info.md @@ -366,7 +366,8 @@ MindSpore采用glog来输出日志,常用的几个环境变量如下: 该环境变量指定日志输出的路径。 若`GLOG_logtostderr`的值为0,则必须设置此变量。 若指定了`GLOG_log_dir`且`GLOG_logtostderr`的值为1时,则日志输出到屏幕,不输出到文件。 - C++和Python的日志会被输出到不同的文件中,C++日志的文件名遵从`GLOG`日志文件的命名规则,这里是`mindspore.机器名.用户名.log.日志级别.时间戳.进程ID`,Python日志的文件名为`mindspore.log.进程ID`。 + C++和Python的日志会被输出到不同的文件中,C++日志的文件名遵从`GLOG`日志文件的命名规则,这里是`mindspore.机器名.用户名.log.日志级别.时间戳.进程ID`,Python日志的文件名为`mindspore.log.进程ID`。 + `GLOG_log_dir`只能包含大小写字母、数字、".", ":", "-", "_", "/", "\\"等字符。 - `MS_SUBMODULE_LOG_v` -- Gitee