question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Time-stamp lines emitted to user_log.

See original GitHub issue

What’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:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pradyunsgcommented, Jan 18, 2019

I don’t think this should be in pip’s output by default. I’m okay with providing this functionality behind a flag.

1reaction
cjerdonekcommented, Jan 17, 2019

@fischman You can disregard my previous message.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prepending a timestamp to each line of output from a command
It is a command line utility, a bit like moreutils's ts, to prepend timestamp information to the standard output of another command. Useful...
Read more >
Configuring remote syslog entries to use ISO timestamp format
This article describes how to configure syslog-ng to make use of ISO timestamp format when sending the logs remotely to syslog servers.
Read more >
How to add a timestamp to bash script log? - linux - Server Fault
You can pipe the script's output through a loop that prefixes the current date and time: ./script.sh | while IFS= read -r line;...
Read more >
Downloading the user log - IBM
Goal: See how user logs from multiple processes in a streams flow are interlaced and ordered by their timestamp in the user log....
Read more >
User Log Format - NAT and IPv6 Transition 02 - Huawei
Formatted timestamp defined in relevant standards and the format is YEAR MONTH DAY ... A command line is used to determine fields carried...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found