(level)
return wrapper
log with color by different level
log with color by different level
log with color by different level
def log_with_color(level):
    """ log with color by different level
    """
    def wrapper(text):
        color = log_colors_config[level.upper()]
        getattr(logger, level.lower())(coloring(text, color))

    return wrapper
def log_with_color ( level ) : def wrapper ( text ) : color = log_colors_config [ level . upper ( ) ] getattr ( logger , level . lower ( ) ) ( coloring ( text , color ) ) return wrapper