Package winappdbg :: Module textio :: Class Logger
[hide private]
[frames] | no frames]

Class Logger

source code


Logs text to standard output and/or a text file.

Instance Methods [hide private]
 
__init__(self, logfile=None, verbose=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__logfile_error(self, e) source code
 
__do_log(self, text) source code
 
log_text(self, text)
Log lines of text, inserting a timestamp.
source code
 
log_event(self, event, text)
Log lines of text associated with a debug event.
source code
 
log_exc(self)
Log lines of text associated with the last Python exception.
source code

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

Instance Variables [hide private]
file fd
File object where log messages are printed to.
str or None logfile
Append messahes to this text file.
bool verbose
True to print messages to standard output.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, logfile=None, verbose=True)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • logfile (str or None) - Append messahes to this text file.
  • verbose (bool) - True to print messages to standard output.
Overrides: object.__init__

log_text(self, text)

source code 

Log lines of text, inserting a timestamp.

Parameters:
  • text (str) - Text to log.

log_event(self, event, text)

source code 

Log lines of text associated with a debug event.

Parameters:
  • event (Event) - Event object.
  • text (str) - Text to log.

Instance Variable Details [hide private]

fd

File object where log messages are printed to. None if no log file is used.
Type:
file