__init__ def __init__(self, name, logger=None) name is a string logger is a Logger Create a new instance of the Notifier class with a given name and an optional Logger class for piping output to. If no logger specified, use the global default |
__log def __log(self, logEntry) Determine whether to send informational message to the logger |
__print def __print(self, string) Prints the string to output followed by a newline. |
__str__ def __str__(self) Print handling routine |
debug def debug(self, debugString) Issue the debug message if debug flag is on |
debugCall def debugCall(self, debugString='') If this notify is in debug mode, print the time of the call followed by the notifier category and the function call (with parameters). |
debugStateCall def debugStateCall(self, obj=None, fsmMemberName='fsm', secondaryFsm='secondaryFSM') If this notify is in debug mode, print the time of the call followed by the [fsm state] notifier category and the function call (with parameters). |
error def error(self, errorString, exception=StandardError) Raise an exception with given string and optional type: Exception: error |
getDebug def getDebug(self) Return whether the printing of debug messages is on or off |
getInfo def getInfo(self) Return whether the printing of info messages is on or off |
getLogging def getLogging(self) Return 1 if logging enabled, 0 otherwise |
getOnlyTime def getOnlyTime(self) Return the time as a string. The Only in the name is referring to not showing the date. |
getSeverity def getSeverity(self) Undocumented function. |
getTime def getTime(self) Return the time as a string suitable for printing at the head of any notify message |
getWarning def getWarning(self) Return whether the printing of warning messages is on or off |
info def info(self, infoString) Print the given informational string, if info flag is on |
setDebug def setDebug(self, bool) Enable/Disable the printing of debug messages |
setInfo def setInfo(self, bool) Enable/Disable informational message printing |
setLogging def setLogging(self, bool) Set the logging flag to int (1=on, 0=off) |
setServerDelta def setServerDelta(self, delta, timezone) Call this method on any Notify object to globally change the timestamp printed for each line of all Notify objects. This synchronizes the timestamp with the server's known time of day, and also switches into the server's timezone. |
setSeverity def setSeverity(self, severity) Undocumented function. |
setWarning def setWarning(self, bool) Enable/Disable the printing of warning messages |
warning def warning(self, warningString) Issue the warning message if warn flag is on |