carputils
Doxygen code documentation for the python framework controlling openCARP
Functions | Variables
carputils.model.PEERP_logger Namespace Reference

Functions

def set_log_file (str path)
 Updates te file handler with a new path. More...
 

Variables

 logger = logging.getLogger("PEERP")
 
 ch = logging.StreamHandler(sys.stdout)
 
 file_handler = RotatingFileHandler("app.log", backupCount=3, delay=True)
 
 formatter = logging.Formatter("%(asctime)s [%(levelname)s] %(name)s: %(message)s")
 

Function Documentation

◆ set_log_file()

def carputils.model.PEERP_logger.set_log_file ( str  path)

Updates te file handler with a new path.

Variable Documentation

◆ ch

carputils.model.PEERP_logger.ch = logging.StreamHandler(sys.stdout)

◆ file_handler

carputils.model.PEERP_logger.file_handler = RotatingFileHandler("app.log", backupCount=3, delay=True)

◆ formatter

carputils.model.PEERP_logger.formatter = logging.Formatter("%(asctime)s [%(levelname)s] %(name)s: %(message)s")

◆ logger

carputils.model.PEERP_logger.logger = logging.getLogger("PEERP")