StandOut 3.0.0 Released

1 view
Skip to first unread message

fuzz...@voidspace.org.uk

unread,
Aug 28, 2006, 7:49:28 AM8/28/06
to pytho...@googlegroups.com

StandOut 3.0.0 Released

emoticon:cat There is a new release of StandOut, the flexible output object. Smile

This version is a complete rewrite, with a full set of unit tests.

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 :

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 :

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

# body of program
print 'This will be logged to the file'

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

StandOut is currently used in both Movable Python and rest2web.

Posted by Fuzzyman on 2006-08-27 18:10:46.
Categories: Projects, Python
Visit the Voidspace Techie Blog to read this entry and more.

Reply all
Reply to author
Forward
0 new messages