Package schrodinger :: Package application :: Package matsci :: Module textlogger :: Class GetLogger
[hide private]
[frames] | no frames]

Class GetLogger

object --+
         |
        GetLogger

Set up a textwrapped log file.

Nested Classes [hide private]
  MyFormatter
Extend logging.Formatter to customize the formats of different log levels and to textwrap the messages.
Instance Methods [hide private]
 
__init__(self, logfilename, verbose, msgwidth)
Create a GetLogger instance and process it.
 
setItUp(self)
Set up the logger.

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, logfilename, verbose, msgwidth)
(Constructor)

 

Create a GetLogger instance and process it.

Parameters:
  • logfilename (str) - name of the log file
  • verbose (boolean) - enable verbose logging
  • msgwidth (int) - message width
Overrides: object.__init__