direct.directnotify.Notifier
from direct.directnotify.Notifier import Notifier
Notifier module: contains methods for handling information output for the programmer/user
Inheritance diagram
- class Notifier(name, logger=None)[source]
Bases:
object
- __init__(self, name, logger=None)[source]
- 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
defaultLogger
is used.
- debugCall(self, debugString='')[source]
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')[source]
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=<class 'Exception'>)[source]
Raise an exception with given string and optional type: Exception: error
- getOnlyTime(self)[source]
Return the time as a string. The Only in the name is referring to not showing the date.
- getTime(self)[source]
Return the time as a string suitable for printing at the head of any notify message
- serverDelta = 0
- setServerDelta(self, delta, timezone)[source]
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.
- showTime = 0
- streamWriter = <panda3d.core.StreamWriter object>