Thanks to visit codestin.com
Credit goes to github.com

Skip to content

daemon, cli: prepend timestamp for every log line #533

@FeelyChau

Description

@FeelyChau

Now, the log from pipcook-cli is pure text without log time, it's not good to analyze problems.
If it could look like this, that would be great:

[18:12:23] ⚠ Building prefix dict from the default dictionary ...
[18:12:24] ⚠ Loading model from cache /var/folders/tq/cmmgdq_143jbd5w_drrdl8km0000gp/T/jieba.cache
[18:12:24] ⚠ Loading model cost 0.703 seconds.
[18:12:25] ⚠ Prefix dict has been built successfully.
[18:12:27] ℹ create a result "qy5nvaid" for plugin "@pipcook/[email protected]"
[18:12:30] ℹ [job] running modelEvaluate end
[18:13:00] ℹ [job] run successfully
[18:13:02] ✔ job is finished successfully
[18:13:04] ℹ start to download output to /Users/feiyu.zfy/work/pipcook/output
[18:13:10] ✔ download finished

We could extend the event interface to put the time stamp, after #526 , it's easy to implement, then we could add an option to the pipcook-cli command like pipcook run pipeline.json -t to show it (or default).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions