Skip to content

Add logger to pip2 #55

@michaeta

Description

@michaeta

As pip2 grows, it will become paramount that a logger will be required for continued development. Unlike pip, we will probably not want to implement our own logger on top of the standard python one. Currently all needed functionality is provided by the default python logger.

pip2 logging structure:

  • log all uncaught exceptions with tracebacks
  • log packaging/distutils2 logs to pip2's log with clear distinctions between the two
  • pip2 log file gets reset after each time it is ran
  • all pip2 standard output gets logged
  • all logs will include time stamp, logger name, log level, and message

optional future log ideas:

  • allow user to set the logging level of pip2 in a config file
  • allow user to specify a path for the log file (for their own records) which will not get reset

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions