[pony-build] The new way of Logging.....
C. Titus Brown
ctb at msu.edu
Sat Mar 20 11:12:33 PDT 2010
On Sat, Mar 13, 2010 at 08:45:41PM -0400, Max Laite wrote:
> 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.
Cool -- where is this? In your repo?
> Side note.....Maybe we implement a command line option for the level we
> want?
Please do!
--titus
--
C. Titus Brown, ctb at msu.edu
More information about the pony-build
mailing list