[pony-build] The new way of Logging.....

Max Laite mlaite at gmail.com
Sat Mar 13 16:45:41 PST 2010


Tiiimber!

Did not know if you posted anything on this and wanted to pass to the others
in case they where wondering like I was there for a few minutes.

All print statements where replaced with log_****

The main one being log_info, it takes care of all the data that use to get
printed out during a build and a few new things now.

The easiest way right now.....

in your import section:

from pony_client import set_log_level

then somewhere before build stuff in your script:

set_log_level = ('*****')

******(possibilities):
DEBUG_LEVEL
INFO_LEVEL
WARNING_LEVEL    -> which is the default
CRITICAL_LEVEL



All pretty straight forward once I actually looked at the log function
definitions. I for some reason was just drawing a mental blank about
importing for a good 5 minutes, plus i seemed to be blinded to the fact that
there was that nice set_log_level.

Anyways, hope it helps someone.


Side note.....Maybe we implement a command line option for the level we
want?



Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/pony-build/attachments/20100313/7a8647d0/attachment.htm>


More information about the pony-build mailing list