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

Max Laite mlaite at gmail.com
Sat Mar 20 11:16:56 PDT 2010


Hmm, this was more like a... "Hey all the output is gone when running our
build scripts, how do we get it back?"

I thought I would write something out since I got stuck on it for a few
minutes, in the hopes of helping others out if they where like me.

Will check out the command line option and push.....

Max

On Sat, Mar 20, 2010 at 2:12 PM, C. Titus Brown <ctb at msu.edu> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/pony-build/attachments/20100320/98d7218c/attachment.html>


More information about the pony-build mailing list