rex.utilities.loggers

Logging wrapper

Functions

add_handlers(logger, handlers)

Add handlers to logger ensuring they do not already exist

clear_handlers(logger)

Clear all handlers from logger

create_dirs(dir_path)

Wrapper for checking and making directory to handle parallel processing

get_handler([log_level, log_file, log_format])

get logger handler

init_logger(logger_name[, stream, ...])

Starts logging instance and adds logging attributes to LOGGERS

init_mult(name, logdir, modules[, verbose, node])

Init multiple loggers to a single file or stdout.

log_mem(logger[, log_level])

Log the memory usage to the input logger object.

log_versions(logger)

Log package versions: - rex to info - h5py, numpy, pandas, and scipy to debug

setup_logger(logger_name[, stream, ...])

Setup logging instance with given name and attributes

Classes

LoggingAttributes()

Class to store and pass logging attributes to modules