alibaba/pipcook

cli: add time prefix for default logger

Open

#900 aperta il 9 ott 2021

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (212 fork)github user discovery
good first issue

Metriche repository

Star
 (2591 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor