The Virtual Brain Project

Table Of Contents

Previous topic

filters Package

Next topic

traits Package

This Page

logger Package


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 a logger instance and return it


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

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


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.