alibaba/pipcook

cli: add time prefix for default logger

オープン

#900 opened on 2021/10/09

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (211 件のフォーク)github user discovery
good first issue

Repository metrics

Stars
 (2,595 個のスター)
PR merge metrics
 (30d に merged 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

コントリビューターガイド