On Mon, May 25, 2009 at 4:31 PM, Pat LeSmithe <qed...@gmail.com> wrote:
>
>
> Does Sage have a general framework for providing progress updates during
> its computations?  More generally, a system for logging and reporting
> messages of various sorts, apart from tracebacks triggered by uncaught
> exceptions?
>
> I ask because I recently "found" Python's logging module:
>
> http://docs.python.org/library/logging.html
>
> It seems to be extensive, but I have no experience with it, particularly
> its effects on performance.  But with the right level of granularity,
> good top-level design and Sage-wide logging policy, and lots of help
> from contributors, perhaps the Logger class is a good base for
> [optionally] recording a history of a calculation.
>
> This might be useful, for example, for following the branches of a
> non-deterministic algorithm, comparing how Sage arrives at an answer on
> different platforms, or simply having a rough answer to "What is Sage
> spending  so much time on now?"  Sometimes, the source code itself
> offers too much detail, at least initially.
>
> Just as there is a dedicated "div" for introspection in each notebook
> cell, how about a similar logging div that's hidden by default.  Of
> course, a user should be able to select among levels of detail.
>
> Thoughts?

+1

There is a logging facility now in Sage, which I mostly implemented and use.
Try doing "set_verbose(2)" and doing some linear algebra (say), and
you'll see a lot of messages.
I wrote that logging system to basically be like Magma's.   Given that
Sage is thoroughly a Python project now, I would be happy with the
get_verbose/set_verbose/verbose commands in Sage being rewritten to
use the standard Python logging facility.   I really love verbose
logging options in code and software I use.

This is not my highest priority right now, but I hope you'll consider
making it yours. :-)

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to