|
Panda3D
|
Public Member Functions | |
| __init__ (self, name, logger=None) | |
| __str__ (self) | |
| debug (self, debugString) | |
| debugCall (self, debugString='') | |
| debugStateCall (self, obj=None, fsmMemberName='fsm', secondaryFsm='secondaryFSM') | |
| error (self, errorString, exception=Exception) | |
| getDebug (self) | |
| getInfo (self) | |
| getLogging (self) | |
| getOnlyTime (self) | |
| getSeverity (self) | |
| getTime (self) | |
| getWarning (self) | |
| info (self, infoString) | |
| setDebug (self, bool) | |
| setInfo (self, bool) | |
| setLogging (self, bool) | |
| setServerDelta (self, delta, timezone) | |
| setSeverity (self, severity) | |
| setWarning (self, bool) | |
| warning (self, warningString) | |
Static Public Attributes | |
| int | serverDelta = 0 |
| showTime = ConfigVariableBool('notify-timestamp', False) | |
| streamWriter = None | |
| __init__ | ( | self, | |
| name, | |||
| logger = None ) |
Parameters:
name (str): a string name given to this Notifier instance.
logger (Logger, optional): an optional Logger object for
piping output to. If none is specified, the global
:data:`~.LoggerGlobal.defaultLogger` is used.
| __str__ | ( | self | ) |
Print handling routine
| debug | ( | self, | |
| debugString ) |
Issue the debug message if debug flag is on
| 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 | ( | 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 | ( | self, | |
| errorString, | |||
| exception = Exception ) |
Raise an exception with given string and optional type: Exception: error
| getDebug | ( | self | ) |
Return whether the printing of debug messages is on or off
| getInfo | ( | self | ) |
Return whether the printing of info messages is on or off
| getLogging | ( | self | ) |
Return 1 if logging enabled, 0 otherwise
| getOnlyTime | ( | self | ) |
Return the time as a string. The Only in the name is referring to not showing the date.
| getSeverity | ( | self | ) |
| getTime | ( | self | ) |
Return the time as a string suitable for printing at the head of any notify message
| getWarning | ( | self | ) |
Return whether the printing of warning messages is on or off
| info | ( | self, | |
| infoString ) |
Print the given informational string, if info flag is on
| setDebug | ( | self, | |
| bool ) |
Enable/Disable the printing of debug messages
| setInfo | ( | self, | |
| bool ) |
Enable/Disable informational message printing
| setLogging | ( | self, | |
| bool ) |
Set the logging flag to int (1=on, 0=off)
| 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 | ( | self, | |
| severity ) |
| setWarning | ( | self, | |
| bool ) |
Enable/Disable the printing of warning messages
| warning | ( | self, | |
| warningString ) |
Issue the warning message if warn flag is on
|
static |
|
static |
|
static |