The mpi_array.logging Module

Default initialisation of python logging.

Some simple wrappers of python built-in logging module for mpi_array logging.

Classes and Functions

SplitStreamHandler([outstr, errstr, splitlevel]) A python logging.handlers Handler class for splitting logging messages to different streams depending on the logging-level.
initialise_loggers(names[, log_level, ...]) Initialises specified loggers to generate output at the specified logging level.
get_rank_logger(name[, comm, ranks]) Returns logging.Logger object for message logging.
get_root_logger(name[, comm, root_rank]) Returns a logging.Logger object with time-stamp, comm.Get_name() and comm.Get_rank() in the message.
LoggerFactory() Factory for generating logging.Logger instances.

Attributes

mpi_array.logging.logger_factory = <mpi_array.logging.LoggerFactory object>

Factory for creating logging.Logger objects. Can set value to different instance in order to customise logging output.