Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
pyLM.LMLogger Namespace Reference

Classes

class  NullHandler

Functions

 setLMLoggerLevel (level)
 setLMLogFile (filename, level=logging.DEBUG)
 setLMLogConsole (level=logging.DEBUG)

Variables

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

Function Documentation

◆ setLMLogConsole()

pyLM.LMLogger.setLMLogConsole ( level = logging.DEBUG)
Set the logger to write to the console as the code is working

Args:
    level:
        The level of information to log

◆ setLMLogFile()

pyLM.LMLogger.setLMLogFile ( filename,
level = logging.DEBUG )
Set up file handler to print log to file

Args:
    filename:
        The name of the file to log information
    level:
        The level of information to log

◆ setLMLoggerLevel()

pyLM.LMLogger.setLMLoggerLevel ( level)
Set the level of the logger for the application

Args:
    level:
        The level the logger should report (e.g. logger.WARNING, logger.INFO, etc.)

Variable Documentation

◆ LMformatter

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

◆ LMLogger

pyLM.LMLogger.LMLogger = logging.getLogger('LMLogger')

◆ nullHandlerLM

pyLM.LMLogger.nullHandlerLM = logging.NullHandler()