Skip to content

logging

AVAILABLE_LOG_LEVELS = {'debug': logging.DEBUG, 'info': logging.INFO, 'warning': logging.WARNING, 'error': logging.ERROR, 'critical': logging.CRITICAL} module-attribute

ndsl_log = _ndsl_logger() module-attribute

ndsl_log_on_rank_0 = _ndsl_logger_on_rank_0() module-attribute

LogLowerLevelsOnRankZeroOnly

Bases: Filter

Allow logging on rank 0 - all other logs are cancelled unless: - NDSL_LOG_ALL is True - OR the log level is >= Error

filter(record)