I missed such a feature in the old code.
This is indeed very helpful.
Regards,
Gertwin
Op schreef Matteo Boscolo <mat...@bo...>:
> Hi All,
> Before starting coding in pythoncad I would like to create a single
> module for debugging purpose.
> This module will have some global variable that will switch on and off
> the print of the debug and will have the possibility to write the log in
> IO windows or in a log file.
> This will be very important for debugging porpoise.
> The module will be something like this
> Class PythonCadTracer(object):
> def info(msg):
> def debug(msg):
> def error(msg):
> def in(msg):
> def out(msg):
> def warning(msg):
> def onWriteFile(self):
> def onWriteIO(self):
> the in and out function take care of the time spent doing the operation
> so in case of function this will be
> def myFunc():
> pyTracer.in("myFunc")
> pyTracer.out("myFunc")
> the output will be
> Start function myFunc
> End function myFunc in 10 s
> Let me know ...
> Regards,
> Matteo
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Pythoncad-developer mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/pythoncad-developer
|