alibaba/pipcook

cli: add time prefix for default logger

开放

#900 创建于 2021年10月9日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (211 个派生)github user discovery
good first issue

仓库指标

星标
 (2,595 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

We distinguish different types of terminals by judging process.stdout. On the default terminal, we use console to output logs, while on the TTY terminal, we use the ora. We have added a time prefix to Ttylogger, but this feature has not been implemented on the DefaultLogger. Here is the DefaultLogger: https://github.com/alibaba/pipcook/blob/main/packages/cli/src/utils/index.ts#L212

贡献者指南