Time-stamp lines emitted to user_log.
See original GitHub issueWhat’s the problem this feature will solve? Enable post-facto analysis of pip operation running time.
Describe the solution you’d like Prefix each line in the user_log (a.k.a. --log) with its timestamp.
Example use-case: pip user notes installation of a package takes a long time to complete; by inspecting the log they can see which sub-phase(s) of pip install
took the lion’s share of the time.
Alternative Solutions
Pip can be wrapped with a script that logs start/end time, and/or prefixes every line of output from pip with a timestamp. Biggest drawback is incompatibility with e.g. python -m pip
-based invocations.
Additional context I’ll be sending a PR with an implementation proposal shortly (creating this issue first for to make a news/ entry).
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top GitHub Comments
I don’t think this should be in pip’s output by default. I’m okay with providing this functionality behind a flag.
@fischman You can disregard my previous message.