def set_logging_config ( log_level , handlers ) : logging . basicConfig ( format = '%(asctime)s %(levelname)s:%(name)s:%(funcName)s: %(message)s' , datefmt = '%Y-%m-%d %H:%M:%S' , level = log_level , handlers = handlers )
how to reuse python logging config
Set python logging library config .
def set_logging_config(log_level, handlers):
    """Set python logging library config.

    Run this ONCE at the start of your process. It formats the python logging
    module's output.
    Defaults logging level to INFO = 20)
    """
    logging.basicConfig(
        format='%(asctime)s %(levelname)s:%(name)s:%(funcName)s: %(message)s',
        datefmt='%Y-%m-%d %H:%M:%S',
        level=log_level,
        handlers=handlers)