alibaba / pipcook

Machine learning platform for Web developers

Home Page:https://alibaba.github.io/pipcook/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cli: add time prefix for default logger

FeelyChau opened this issue · comments

commented

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