direct.directnotify.Logger

from direct.directnotify.Logger import Logger

Logger module: contains the logger class which creates and writes data to log files on disk

Inheritance diagram

Inheritance diagram of direct.directnotify.Logger

class Logger(fileName: str = 'log')[source]

Bases: object

__init__(self, fileName: str = 'log') None[source]

Logger constructor

getTimeStamp(self) bool[source]

Return whether or not we are printing time stamps with log entries

log(self, string)[source]

Print the given string to the log file

resetStartTime(self) None[source]

Reset the start time of the log file for time stamps

setTimeStamp(self, enable: bool) None[source]

Toggle time stamp printing with log entries on and off