alibaba/pipcook

cli: add time prefix for default logger

Open

#900 创建于 2021年10月9日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)TypeScript (212 fork)github user discovery
good first issue

仓库指标

Star
 (2,591 star)
PR 合并指标
 (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

贡献者指南