orca.debug (version 1808, $Date: 2007-03-12 16:23:35 -0400 (Mon, 12 Mar 2007) $)
index
/usr/lib/python2.5/site-packages/orca/debug.py

Provides debug utilities for Orca.  Debugging is managed by a debug
level, which is held in the debugLevel field.  All other methods take
a debug level, which is compared to the current debug level to
determine if the content should be output.

 
Modules
       
logging
traceback

 
Functions
       
printDetails(level, indent, accessible, includeApp=True)
Lists the details of the given accessible with the given
indentation.
 
Arguments:
- level: the accepted debug level
- indent: a string containing spaces for indentation
- accessible: the accessible whose details are to be listed
- includeApp: if True, include information about the app
printException(level)
Prints out information regarding the current exception.
 
Arguments:
- level: the accepted debug level
printInputEvent(level, string)
Prints out an input event.  The given level may be overridden
if the eventDebugLevel (see setEventDebugLevel) is greater.
 
Arguments:
- level: the accepted debug level
- string: the string representing the input event
printObjectEvent(level, event, sourceInfo=None)
Prints out an Python Event object.  The given level may be
overridden if the eventDebugLevel is greater.  Furthermore, only
events with event types matching the eventDebugFilter regular
expression will be printed.
 
Arguments:
- level: the accepted debug level
- event: the Python Event to print
- sourceInfo: additional string to print out
printStack(level)
Prints out the current stack.
 
Arguments:
- level: the accepted debug level
println(level, text='')
Prints the text to stdout if debug is enabled.
 
Arguments:
- level: the accepted debug level
- text: the text to print (default is a blank line)

 
Data
        LEVEL_ALL = 0
LEVEL_CONFIGURATION = 700
LEVEL_FINE = 600
LEVEL_FINER = 500
LEVEL_FINEST = 400
LEVEL_INFO = 800
LEVEL_OFF = 10000
LEVEL_SEVERE = 1000
LEVEL_WARNING = 900
__copyright__ = 'Copyright (c) 2005-2006 Sun Microsystems Inc.'
__date__ = '$Date: 2007-03-12 16:23:35 -0400 (Mon, 12 Mar 2007) $'
__id__ = '$Id: orca.debug.html 5086 2007-03-12 20:23:35Z wwalker $'
__license__ = 'LGPL'
__version__ = '$Revision: 5086 $'
debugFile = None
debugLevel = 1000
eventDebugFilter = None
eventDebugLevel = 400
log = <logging.RootLogger instance at 0x4061894c>