Logging

Util functions for setting up logging.

ecgan.utils.log.setup_logger(name, logging_level='info')[source]

Set logger for the corresponding package.

ecgan.utils.log.set_log_level(level)[source]

Set the log_level of a logger with a given name.

Since each module registers its own logger: iterate through all loggers. Supported string levels: https://docs.python.org/3/library/logging.html#levels.

Parameters

level (Union[str, int]) -- Supported string level or integer for self-defined log level.

Return type

None