diff --git a/tutorials/source_en/advanced_use/customized_debugging_information.md b/tutorials/source_en/advanced_use/customized_debugging_information.md index 0e4fdd17dc346225ce4d59736305ca8b56033546..7ed7a918be9ab35e930d41063842a14de5fb9e9a 100644 --- a/tutorials/source_en/advanced_use/customized_debugging_information.md +++ b/tutorials/source_en/advanced_use/customized_debugging_information.md @@ -224,31 +224,33 @@ MindSpore uses glog to output logs. The following environment variables are comm 1. GLOG_v specifies the log level. The default value is 2, indicating the WARNING level. The values are as follows: 0: DEBUG; 1: INFO; 2: WARNING; 3: ERROR. 2. When GLOG_logtostderr is set to 1, logs are output to the screen. If the value is set to 0, logs are output to a file. Default value: 1 3. GLOG_log_dir=YourPath 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`. -4. MS_SUBMODULE_LOG_v={SubModule1:LogLevel1,SubModule2:LogLevel2,...} specifies log levels of sub modules of MindSpore. The specified sub module log level will overwrite the global log level. The meaning of submodule log level is same as GLOG_v, the sub modules of MindSpore grouped by source directory is as the bellow table. E.g. when set `GLOG_v=1 MS_SUBMODULE_LOG_v={PARSER:2,ANALYZER:2}` then log levels of `PARSER` and `ANALYZER` are WARNING, other modules' log levels are INFO. - - Sub moudles of MindSpore grouped by source directory: - | Source Files | Sub Module Name | - | ------------ | --------------- | - | mindspore/ccsrc/common | COMMON | - | mindspore/ccsrc/dataset | MD | - | mindspore/ccsrc/debug | DEBUG | - | mindspore/ccsrc/device | DEVICE | - | mindspore/ccsrc/gvar | COMMON | - | mindspore/ccsrc/ir | IR | - | mindspore/ccsrc/kernel | KERNEL | - | mindspore/ccsrc/mindrecord | MD | - | mindspore/ccsrc | ME | - | mindspore/ccsrc/onnx | ONNX | - | mindspore/ccsrc/operator | ANALYZER | - | mindspore/ccsrc/optimizer | OPTIMIZER | - | mindspore/ccsrc/parallel | PARALLEL | - | mindspore/ccsrc/pipeline/*.cc | PIPELINE | - | mindspore/ccsrc/pipeline/parse | PARSER | - | mindspore/ccsrc/pipeline/static_analysis | ANALYZER | - | mindspore/ccsrc/pre_activate | PRE_ACT | - | mindspore/ccsrc/pybind_api | COMMON | - | mindspore/ccsrc/pynative | PYNATIVE | - | mindspore/ccsrc/session | SESSION | - | mindspore/ccsrc/transform | GE_ADPT | - | mindspore/ccsrc/utils | UTILS | - | mindspore/ccsrc/vm | VM | +4. MS_SUBMODULE_LOG_v="{SubModule1:LogLevel1,SubModule2:LogLevel2,...}" specifies log levels of sub modules of MindSpore. The specified sub module log level will overwrite the global log level. The meaning of submodule log level is same as GLOG_v, the sub modules of MindSpore grouped by source directory is as the bellow table. E.g. when set `GLOG_v=1 MS_SUBMODULE_LOG_v="{PARSER:2,ANALYZER:2}"` then log levels of `PARSER` and `ANALYZER` are WARNING, other modules' log levels are INFO. + +Sub moudles of MindSpore grouped by source directory: + +| Source Files | Sub Module Name | +| ------------ | --------------- | +| mindspore/ccsrc/common | COMMON | +| mindspore/ccsrc/dataset | MD | +| mindspore/ccsrc/debug | DEBUG | +| mindspore/ccsrc/device | DEVICE | +| mindspore/ccsrc/gvar | COMMON | +| mindspore/ccsrc/ir | IR | +| mindspore/ccsrc/kernel | KERNEL | +| mindspore/ccsrc/mindrecord | MD | +| mindspore/ccsrc | ME | +| mindspore/ccsrc/onnx | ONNX | +| mindspore/ccsrc/operator | ANALYZER | +| mindspore/ccsrc/optimizer | OPTIMIZER | +| mindspore/ccsrc/parallel | PARALLEL | +| mindspore/ccsrc/pipeline/*.cc | PIPELINE | +| mindspore/ccsrc/pipeline/parse | PARSER | +| mindspore/ccsrc/pipeline/static_analysis | ANALYZER | +| mindspore/ccsrc/pre_activate | PRE_ACT | +| mindspore/ccsrc/pybind_api | COMMON | +| mindspore/ccsrc/pynative | PYNATIVE | +| mindspore/ccsrc/session | SESSION | +| mindspore/ccsrc/transform | GE_ADPT | +| mindspore/ccsrc/utils | UTILS | +| mindspore/ccsrc/vm | VM | + diff --git a/tutorials/source_zh_cn/advanced_use/customized_debugging_information.md b/tutorials/source_zh_cn/advanced_use/customized_debugging_information.md index a1e4bb676e4c3b538eff9a61e93b971cee864d64..5ebf9110a153ababeb564346f623f2fb6c5514f4 100644 --- a/tutorials/source_zh_cn/advanced_use/customized_debugging_information.md +++ b/tutorials/source_zh_cn/advanced_use/customized_debugging_information.md @@ -223,32 +223,33 @@ MindSpore采用glog来输出日志,常用的几个环境变量如下: 1. GLOG_v 控制日志的级别,默认值为2,即WARNING级别,对应关系如下:0-DEBUG、1-INFO、2-WARNING、3-ERROR。 2. GLOG_logtostderr 值设置为1时,日志输出到屏幕;值设置为0时,日志输出到文件。默认值为1。 3. GLOG_log_dir=YourPath 指定日志输出的路径。若GLOG_logtostderr的值为0,则必须设置此变量。若指定了GLOG_log_dir且GLOG_logtostderr的值为1时,则日志输出到屏幕,不输出到文件。C++和Python的日志会被输出到不同的文件中,C++日志的文件名遵从GLOG日志文件的命名规则,这里是`mindspore.机器名.用户名.log.日志级别.时间戳`,Python日志的文件名为`mindspore.log`。 -4. MS_SUBMODULE_LOG_v={SubModule1:LogLevel1,SubModule2:LogLevel2,...} 指定MindSpore子模块的日志级别,被指定的子模块的日志级别将覆盖GLOG_v在此模块内的设置,此处子模块的日志级别LogLevel与GLOG_v的日志级别含义相同,MindSpore子模块的划分如下表。如可以通过`GLOG_v=1 MS_SUBMODULE_LOG_v={PARSER:2,ANALYZER:2}`把`PARSER`和`ANALYZER`模块的日志级别设为WARNING,其他模块的日志级别设为INFO。 - - MindSpore子模块按照目录划分如下: - | Source Files | Sub Module Name | - | ------------ | --------------- | - | mindspore/ccsrc/common | COMMON | - | mindspore/ccsrc/dataset | MD | - | mindspore/ccsrc/debug | DEBUG | - | mindspore/ccsrc/device | DEVICE | - | mindspore/ccsrc/gvar | COMMON | - | mindspore/ccsrc/ir | IR | - | mindspore/ccsrc/kernel | KERNEL | - | mindspore/ccsrc/mindrecord | MD | - | mindspore/ccsrc | ME | - | mindspore/ccsrc/onnx | ONNX | - | mindspore/ccsrc/operator | ANALYZER | - | mindspore/ccsrc/optimizer | OPTIMIZER | - | mindspore/ccsrc/parallel | PARALLEL | - | mindspore/ccsrc/pipeline/*.cc | PIPELINE | - | mindspore/ccsrc/pipeline/parse | PARSER | - | mindspore/ccsrc/pipeline/static_analysis | ANALYZER | - | mindspore/ccsrc/pre_activate | PRE_ACT | - | mindspore/ccsrc/pybind_api | COMMON | - | mindspore/ccsrc/pynative | PYNATIVE | - | mindspore/ccsrc/session | SESSION | - | mindspore/ccsrc/transform | GE_ADPT | - | mindspore/ccsrc/utils | UTILS | - | mindspore/ccsrc/vm | VM | +4. MS_SUBMODULE_LOG_v="{SubModule1:LogLevel1,SubModule2:LogLevel2,...}" 指定MindSpore子模块的日志级别,被指定的子模块的日志级别将覆盖GLOG_v在此模块内的设置,此处子模块的日志级别LogLevel与GLOG_v的日志级别含义相同,MindSpore子模块的划分如下表。如可以通过`GLOG_v=1 MS_SUBMODULE_LOG_v="{PARSER:2,ANALYZER:2}"`把`PARSER`和`ANALYZER`模块的日志级别设为WARNING,其他模块的日志级别设为INFO。 + +MindSpore子模块按照目录划分如下: + +| Source Files | Sub Module Name | +| ------------ | --------------- | +| mindspore/ccsrc/common | COMMON | +| mindspore/ccsrc/dataset | MD | +| mindspore/ccsrc/debug | DEBUG | +| mindspore/ccsrc/device | DEVICE | +| mindspore/ccsrc/gvar | COMMON | +| mindspore/ccsrc/ir | IR | +| mindspore/ccsrc/kernel | KERNEL | +| mindspore/ccsrc/mindrecord | MD | +| mindspore/ccsrc | ME | +| mindspore/ccsrc/onnx | ONNX | +| mindspore/ccsrc/operator | ANALYZER | +| mindspore/ccsrc/optimizer | OPTIMIZER | +| mindspore/ccsrc/parallel | PARALLEL | +| mindspore/ccsrc/pipeline/*.cc | PIPELINE | +| mindspore/ccsrc/pipeline/parse | PARSER | +| mindspore/ccsrc/pipeline/static_analysis | ANALYZER | +| mindspore/ccsrc/pre_activate | PRE_ACT | +| mindspore/ccsrc/pybind_api | COMMON | +| mindspore/ccsrc/pynative | PYNATIVE | +| mindspore/ccsrc/session | SESSION | +| mindspore/ccsrc/transform | GE_ADPT | +| mindspore/ccsrc/utils | UTILS | +| mindspore/ccsrc/vm | VM |