Package dogtail :: Module logging :: Class Logger
[hide private]
[frames] | no frames]

Class Logger

source code

Known Subclasses:

Writes entries to standard out.

Instance Methods [hide private]
 
__init__(self, logName, file=False, stdOut=True)
name: the name of the log file: The file object to log to.
source code
 
findUniqueName(self) source code
 
createFile(self) source code
 
log(self, message, newline=True, force=False)
Hook used for logging messages.
source code
Class Variables [hide private]
  stamper = TimeStamp()
Method Details [hide private]

__init__(self, logName, file=False, stdOut=True)
(Constructor)

source code 

name: the name of the log file: The file object to log to. stdOut: Whether to log to standard out.

log(self, message, newline=True, force=False)

source code 

Hook used for logging messages. Might eventually be a virtual function, but nice and simple for now.

If force is True, log to a file irrespective of config.logDebugToFile.