The Virtual Brain Project

Table Of Contents

Previous topic

filters Package

Next topic

traits Package

This Page

logger Package

builder

Singleton logging builder.

class tvb.basic.logger.builder.LoggerBuilder(config_root)[source]

Bases: object

Class taking care of uniform Python logger initialization. It uses the Python native logging package. It’s purpose is just to offer a common mechanism for initializing all modules in a package.

build_logger(parent_module)[source]

Build a logger instance and return it

set_loggers_level(level)[source]
tvb.basic.logger.builder.get_logger(parent_module='')[source]

Function to retrieve a new Python logger instance for current module.

Parameters:parent_module – module name for which to create logger.

simple_handler

This module contains a simple file handlers used to log messages for different parts of application.

class tvb.basic.logger.simple_handler.SimpleTimedRotatingFileHandler(filename, when='h', interval=1, backupCount=0)[source]

Bases: logging.handlers.TimedRotatingFileHandler

This is a custom rotating file handler which computes the full path for log file depending on the TVB configuration.