pyLM  v1.1
A Python Problem Solving Environment for the simulation of stochastic biological systems
 All Classes Namespaces Files Functions Variables Pages
Classes | Functions | Variables
pyLM.LMLogger Namespace Reference

Classes

class  NullHandler
 

Functions

def setLMLoggerLevel
 Set the level of the logger for the application. More...
 
def setLMLogFile
 Set up file handler to print log to file. More...
 
def setLMLogConsole
 Set the logger to write to the console as the code is working. More...
 

Variables

tuple LMLogger = logging.getLogger('LMLogger')
 
tuple nullHandlerLM = logging.NullHandler()
 
tuple LMformatter = logging.Formatter('%(asctime)s: %(levelname)s: %(message)s')
 

Function Documentation

def pyLM.LMLogger.setLMLogConsole (   level = logging.DEBUG)

Set the logger to write to the console as the code is working.

Parameters
levelThe level of information to log
def pyLM.LMLogger.setLMLogFile (   filename,
  level = logging.DEBUG 
)

Set up file handler to print log to file.

Parameters
filenameThe name of the file to log information
levelThe level of information to log
def pyLM.LMLogger.setLMLoggerLevel (   level)

Set the level of the logger for the application.

Parameters
levelThe level the logger should report (e.g. logger.WARNING, logger.INFO, etc.)

Variable Documentation

tuple pyLM.LMLogger.LMformatter = logging.Formatter('%(asctime)s: %(levelname)s: %(message)s')
tuple pyLM.LMLogger.LMLogger = logging.getLogger('LMLogger')
tuple pyLM.LMLogger.nullHandlerLM = logging.NullHandler()