Closed
[Requirement|需求建议]: ASCEND_LOG_PRINT_TO_STDOUT环境变量行为变动 #1307
GuoWenboAdd on  27 days agoClosed at  9 days ago
GuoWenbo
GuoWenboCollaborators
27 days ago Create

Backgroud(背景信息)

新增ASCEND_LOG_PRINT_TO_STDOUT=2,指定打屏的日志为warning级别及以上(warning/error)
新增ASCEND_LOG_PRINT_TO_STDOUT=3,指定打屏的日志为error级别
ASCEND_LOG_PRINT_TO_STDOUT行为变更,设置打屏时,也同步落盘一份日志到磁盘上
与ASCEND_GLOBAL_LOG_LEVEL一起设置时的行为:
ASCEND_GLOBAL_LOG_LEVEL=3,ASCEND_LOG_PRINT_TO_STDOUT=2,打屏日志级别为error,debug类型日志落盘日志级别为error
ASCEND_GLOBAL_LOG_LEVEL=2,ASCEND_LOG_PRINT_TO_STDOUT=3,打屏日志级别为error,debug类型日志落盘日志级别为warning

Origin(信息来源)

DS客户

Benefit / Necessity (价值/作用)

当前设置ASCEND_LOG_PRINT_TO_STDOUT=1时,默认的run/plog日志会打屏显示,这些日志主要时info级别;
与通过打屏采集error日志的预期不符,所以扩展ASCEND_LOG_PRINT_TO_STDOUT的定义

Design(设计方案)

重点验证一下ASCEND_LOG_PRINT_TO_STDOUT=1时的行为变动(从只打屏变成打屏+落盘),此情况下日志接口(dlog_error等)的性能是否有变化

likedislike
GuoWenboGuoWenboCollaborators
27 days ago Added label: requirement
GuoWenboGuoWenboCollaborators
25 days ago Associated pull request
GuoWenboGuoWenboCollaborators
24 days ago Change title to "[Requirement|需求建议]: ASCEND_LOG_PRINT_TO_STDOUT环境变量行为变动", originally titled "[Requirement|需求建议]: ASCEND_SLOG_PRINT_TO_STDOUT环境变量行为变动".
GuoWenboGuoWenboCollaborators
24 days ago Modify description of issue
GuoWenboGuoWenboCollaborators
10 days ago Associated pull request
GuoWenboGuoWenboCollaborators
9 days ago changed custom state from 进行中 to 已解决
GuoWenboGuoWenboCollaborators
9 days ago Close issue
CANN-robotCANN-robotCollaborators
9 days ago Added label: resolved
GuoWenboGuoWenboCollaborators
7 days ago Associated pull request
LimpuLimpu
7 days ago Associated pull request