pydim::debug Namespace Reference


Functions

def commandLineUsage
def DEBUG
 Prints messages adding the caller class name and the line of where the call was invoked.
def DEBUG2
 Prints messages adding the caller class name and the line of where the call was invoked.
def ERROR
 Prints messages adding the caller class name and the line of where the call was invoked.
def ERROR2
 Prints messages adding the caller class name and the line of where the call was invoked.
def getCallerID
 Returns a string containing informations about the function that called it at a desired level.
def LAST_EXCEPTION
def parseCommandLine
 Sets the debugging location based on the command line arguments given.
def resetDebugStream
def resetErrorStream
def resetOutputStream
def SAY
 Prints messages adding the caller class name and the line of where the call was invoked.
def SAY2
 Prints messages adding the caller class name and the line of where the call was invoked.
def setDebug
def setDebugStream
def setErrorStream
def setOutputStream
def setSyslog

Variables

string __author__ = "Radu Stoica"
string __date__ = "2006"
 __dbg = sys.stdout
 __err = sys.stderr
 __out = sys.stdout
string __private = 'test'
string __version__ = "1.0"
int _DEBUG = 1
int _DEBUG = 0
int _ERROR = 1
int _VERBOSE = 1
 level


Function Documentation

def pydim::debug::commandLineUsage (  ) 

Definition at line 214 of file debug.py.

def pydim::debug::DEBUG (   args  ) 

Prints messages adding the caller class name and the line of where the call was invoked.

Behaviour can be changed (on/off) by modifying the _DEBUG global var.

Definition at line 182 of file debug.py.

def pydim::debug::DEBUG2 (   args  ) 

Prints messages adding the caller class name and the line of where the call was invoked.

Behaviour can be changed (on/off) by modifying the _DEBUG global var.

Definition at line 152 of file debug.py.

def pydim::debug::ERROR (   args  ) 

Prints messages adding the caller class name and the line of where the call was invoked.

Behaviour can be changed (on/off) by modifying the _ERROR global var.

Definition at line 172 of file debug.py.

def pydim::debug::ERROR2 (   args  ) 

Prints messages adding the caller class name and the line of where the call was invoked.

Behaviour can be changed (on/off) by modifying the _ERROR global var.

Definition at line 142 of file debug.py.

def pydim::debug::getCallerID (   level,
  just = 20 
)

Returns a string containing informations about the function that called it at a desired level.

level = how many level up should the tracing of this function start.

Parameters:
level How many level up should the tracing of this function start.
just,: The string will be left justified with the provided input
Returns:
a string containing informations about the function that called it at the desired stack level.

Definition at line 99 of file debug.py.

def pydim::debug::LAST_EXCEPTION (  ) 

Definition at line 125 of file debug.py.

def pydim::debug::parseCommandLine (  ) 

Sets the debugging location based on the command line arguments given.

Argument: -f (foreground) -> all logging informations goes to stdout/stderr -l (log) <logfile> -> prints to <logfile> -s (syslog) -> prints to syslog using the UUCP facility

Definition at line 195 of file debug.py.

def pydim::debug::resetDebugStream (  ) 

Definition at line 40 of file debug.py.

def pydim::debug::resetErrorStream (  ) 

Definition at line 34 of file debug.py.

def pydim::debug::resetOutputStream (  ) 

Definition at line 37 of file debug.py.

def pydim::debug::SAY (   args  ) 

Prints messages adding the caller class name and the line of where the call was invoked.

Behaviour can be changed (on/off) by modifying the _VERBOSE global var.

Definition at line 162 of file debug.py.

def pydim::debug::SAY2 (   args  ) 

Prints messages adding the caller class name and the line of where the call was invoked.

Behaviour can be changed (on/off) by modifying the _VERBOSE global var.

Definition at line 132 of file debug.py.

def pydim::debug::setDebug (   value  ) 

Definition at line 84 of file debug.py.

def pydim::debug::setDebugStream (   fileDescriptor  ) 

Definition at line 57 of file debug.py.

def pydim::debug::setErrorStream (   fileDescriptor  ) 

Definition at line 43 of file debug.py.

def pydim::debug::setOutputStream (   fileDescriptor  ) 

Definition at line 50 of file debug.py.

def pydim::debug::setSyslog (   name = None,
  facility = None 
)

Definition at line 64 of file debug.py.


Variable Documentation

string __author__ = "Radu Stoica" [static]

Definition at line 17 of file debug.py.

string __date__ = "2006" [static]

Definition at line 16 of file debug.py.

__dbg = sys.stdout [static]

Definition at line 32 of file debug.py.

__err = sys.stderr [static]

Definition at line 30 of file debug.py.

__out = sys.stdout [static]

Definition at line 31 of file debug.py.

string __private = 'test' [static]

Definition at line 28 of file debug.py.

string __version__ = "1.0" [static]

Definition at line 15 of file debug.py.

int _DEBUG = 1 [static]

Definition at line 224 of file debug.py.

int _DEBUG = 0 [static]

Definition at line 24 of file debug.py.

int _ERROR = 1 [static]

Definition at line 26 of file debug.py.

int _VERBOSE = 1 [static]

Definition at line 25 of file debug.py.

level

Definition at line 68 of file debug.py.


Generated on 5 Feb 2014 for PyDIM by  doxygen 1.4.7