logger Package

cluster_handler

class tvb.config.logger.cluster_handler.ClusterTimedRotatingFileHandler(when='h', interval=1, backupCount=0)[source]

Bases: MemoryHandler

This is a custom rotating file handler which computes the name of the file depending on the execution environment (web node, cluster node or hpc)

ASYNC_OP_LOG_FILE = 'operations_executions.log'
BUFFER_CAPACITY = 20
WEB_LOG_FILE = 'web_application.log'

elasticsearch_handler

class tvb.config.logger.elasticsearch_handler.ElasticQueueHandler(level=0)[source]

Bases: Handler

emit(record: LogRecord) None[source]

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.