gaps.log#

Logging utilities.

Some of the code in this module is borrowed from rex (NREL/rex).

Module attributes

FORMAT

Default format for gaps logging.

Functions

add_handlers(handlers)

Add handlers to logger ensuring they do not already exist.

init_logger([stream, level, file, fmt])

Initialize and setup logging instance.

log_mem([log_level])

Log the memory usage to the input logger object.

log_versions()

Log package versions.

make_handler(factory[, level, fmt])

Make a handler to add to a Logger instance.

make_log_file_handler(file_path)

Make a file handler to add to a Logger instance.

make_log_stream_handler()

Make a file handler to add to a Logger instance.

print_logging_info()

Print logger names, levels, and handlers.

print_logging_info_all_libraries()

Print logger info from all libraries.