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

Class Logger

source code

object --+
         |
        Logger
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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  stamper = TimeStamp()
Properties [hide private]

Inherited from object: __class__

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.

Overrides: object.__init__

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.