osupython / pip2

Experimental port of pip from distutils to distutils2.
http://pip2.readthedocs.org/
MIT License
18 stars 11 forks source link

Add logger to pip2 #55

Open michaeta opened 12 years ago

michaeta commented 12 years ago

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:

optional future log ideas:

michaeta commented 12 years ago

There are two possible methods I was thinking of when making sure that there were distinctions between the pip2 and packaging/distutils2 logger. One method was to include the logger's name in each log and the other was to have an extra log statement when loggers change.

First method:

pip2: message pip2: mesage packaging: message packaging: message pip2: message

second method:

message message ===== packaging ===== message message ===== pip2 ===== message

Any advice or recommendations on these approaches?