Share and Money Management  0.16
Public Member Functions | Public Attributes | Private Member Functions | List of all members
gui.log.FileHandler Class Reference
Inheritance diagram for gui.log.FileHandler:

Public Member Functions

def __init__
def close
def emit
- Public Member Functions inherited from gui.log.StreamHandler
def __init__
def flush

Public Attributes

- Public Attributes inherited from gui.log.StreamHandler

Private Member Functions

def _open

Additional Inherited Members

- Static Public Attributes inherited from gui.log.StreamHandler
string terminator = '\n'

Detailed Description

A handler class which writes formatted logging records to disk files.

Constructor & Destructor Documentation

def gui.log.FileHandler.__init__ (   self,
  mode = 'a',
  encoding = None,
  delay = 0 
Open the specified file and use it as the stream for logging.

Member Function Documentation

def gui.log.FileHandler._open (   self)
Open the current base file with the (original) mode and encoding.
Return the resulting stream.

References gui.log.FileHandler.baseFilename, smm.objects.SMMBaseObject.encoding, smm.quote.base.FetchPluginBase.encoding, gui.log.StringHandler.encoding, gui.log.FileHandler.encoding, and gui.log.FileHandler.mode.

Referenced by gui.log.FileHandler.emit().

Here is the caller graph for this function:

def gui.log.FileHandler.close (   self)
Closes the stream.

References gui.log.StringHandler.flush(), gui.log.StreamHandler.flush(), and

Here is the call graph for this function:

def gui.log.FileHandler.emit (   self,
Emit a record.

If the stream was not opened because 'delay' was specified in the
constructor, open it before calling the superclass's emit.

Reimplemented from gui.log.StreamHandler.

References gui.log.FileHandler._open(), and

Here is the call graph for this function:

Member Data Documentation


The documentation for this class was generated from the following file: