Package moul :: Module log
[hide private]
[frames] | no frames]

Module log



pyMoul logger

Classes [hide private]
  LoggingStdout
Replacement for stdout/stderr IO

Functions [hide private]
  _installMemoryHdlr()
setup a memory handler to store records before we have the infrastructure to log events to a file
  _removeMemoryHdlr()
Remove memory handler
  _installFileHdlr()
Install a file handler
  _systemInfo()
  createLogfile()
Create log file and redirect stdout/stderr to logfile
  signalLogDecorator(__logger__)
Decorator to log signals

Variables [hide private]
  __author__ = 'Christian Heimes'
  __revision__ = '$Revision: 130 $'
  getLogger = <function getLogger at 0x402e04c4>
  __FROZEN__ = False
  format = <logging.Formatter instance at 0x402f210c>
  root = <logging.RootLogger instance at 0x402d58ac>
  LOG = <logging.Logger instance at 0x40302d6c>
  mhdlr = None
helper for pickle
  fhdlr = None
helper for pickle
  shdlr = <logging.StreamHandler instance at 0x40302dec>
  __LOG_SIGNALS__ = True
  absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0...

Function Details [hide private]

_installMemoryHdlr()

 
setup a memory handler to store records before we have the infrastructure to log events to a file

_removeMemoryHdlr()

 
Remove memory handler

_installFileHdlr()

 
Install a file handler

_systemInfo()

 
None

createLogfile()

 
Create log file and redirect stdout/stderr to logfile

signalLogDecorator(__logger__)

 

Decorator to log signals

Logs signal methods to __logger__.debug() including func name, args and kwargs.

signalLogDecorator() is a NOOP when running as a sys.frozen program.

Variables Details [hide private]

__author__

None
Value:
'Christian Heimes'                                                     
      

__revision__

None
Value:
'$Revision: 130 $'                                                     
      

getLogger

None
Value:
<function getLogger at 0x402e04c4>                                     
      

__FROZEN__

None
Value:
False                                                                  
      

format

None
Value:
<logging.Formatter instance at 0x402f210c>                             
      

root

None
Value:
<logging.RootLogger instance at 0x402d58ac>                            
      

LOG

None
Value:
<logging.Logger instance at 0x40302d6c>                                
      

mhdlr

helper for pickle
Value:
None                                                                  
      

fhdlr

helper for pickle
Value:
None                                                                  
      

shdlr

None
Value:
<logging.StreamHandler instance at 0x40302dec>                         
      

__LOG_SIGNALS__

None
Value:
True                                                                   
      

absolute_import

None
Value:
_Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)