[ANN] StandOut 3.0.0 Released

Discussion in 'Python' started by Fuzzyman, Aug 27, 2006.

  1. Fuzzyman

    Fuzzyman Guest

    There is a new release of `StandOut
    <http://www.voidspace.org.uk/python/modules.shtml#standout>`_, the
    flexible output object.

    This version is a complete rewrite, with a *full* set of `unit tests
    <http://svn.pythonutils.python-hosting.com/trunk/pythonutils/standout_test.py>`_.

    *standout* is a module that provides a single class: ``StandOut`` - the
    flexible output object. It provides a simple way of adding logging to a
    program, and an easy way of adding verbosity levels.

    By assigning a priority level to each message, it makes it trivially
    easy to allow your users to choose their own verbosity level. Verbosity
    levels for normal output and the log file can be different.

    Alternatively you can just use StandOut for logging ``stdout`` and
    ``stderr`` to a file.

    As an added bonus it includes a software unbuffered mode. In this mode
    all writes to ``stdout`` and ``stderr`` are flushed immediately.

    Quick download links :

    * `standout.py (8.5kB)
    <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=standout.py>`_
    * `standout.zip (108kB)
    <http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=standout.zip>`_

    The zip file includes full documentation and unit tests.

    Basic usage, for logging all output on the standard output and standard
    error streams to a file :

    ... raw:: html

    {+coloring}

    from standout import StandOut
    stout = StandOut('log.txt')

    # body of program
    main()

    # then close the log file
    # and restore normal output/error streams
    stout.close()

    {-coloring}

    StandOut is currently used in both `Movable Python
    <http://www.voidspace.org.uk/python/movpy/>`_ and `rest2web
    <http://www.voidspace.org.uk/python/>`_.
     
    Fuzzyman, Aug 27, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tom Hawkins

    [ANN] Confluence 0.7.1 Released

    Tom Hawkins, Oct 23, 2003, in forum: VHDL
    Replies:
    0
    Views:
    669
    Tom Hawkins
    Oct 23, 2003
  2. Tom Hawkins

    [ANN] InFormal 0.1.1 Released

    Tom Hawkins, Nov 9, 2004, in forum: VHDL
    Replies:
    2
    Views:
    634
    Tom Hawkins
    Nov 9, 2004
  3. Jussi Jumppanen

    ANN: Zeus Version 3.95 Editor Released

    Jussi Jumppanen, Aug 8, 2005, in forum: VHDL
    Replies:
    0
    Views:
    554
    Jussi Jumppanen
    Aug 8, 2005
  4. Al Ponomarev
    Replies:
    3
    Views:
    815
    Ken Cox [Microsoft MVP]
    May 3, 2004
  5. Lei Yang
    Replies:
    0
    Views:
    450
    Lei Yang
    Oct 8, 2005
  6. Jaroslaw Kowalski

    ANN: NLog version 0.95 has been released!

    Jaroslaw Kowalski, Feb 20, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    515
    Jaroslaw Kowalski
    Feb 20, 2006
  7. Phillip Lord

    [ANN] Antmerge 1.0 released

    Phillip Lord, Jul 17, 2003, in forum: Java
    Replies:
    0
    Views:
    487
    Phillip Lord
    Jul 17, 2003
  8. Fuzzyman
    Replies:
    0
    Views:
    472
    Fuzzyman
    Jan 26, 2004
Loading...