def set_log_color_set(is_leader=False):
# level SPAM value is 5
# level DEBUG value is 10
if is_leader:
coloredlogs.DEFAULT_LEVEL_STYLES = {
'info': {},
'notice': {'color': 'magenta'},
'verbose': {'color': 'green'},
'success': {'color': 'green', 'bold': True},
'spam': {'color': 'cyan'},
'critical': {'color': 'red', 'bold': True},
'error': {'color': 'red'},
'debug': {'color': 'blue'},
'warning': {'color': 'yellow'}}
else:
coloredlogs.DEFAULT_LEVEL_STYLES = {
'info': {},
'notice': {'color': 'magenta'},
'verbose': {'color': 'blue'},
'success': {'color': 'green', 'bold': True},
'spam': {'color': 'cyan'},
'critical': {'color': 'red', 'bold': True},
'error': {'color': 'red'},
'debug': {'color': 'green'},
'warning': {'color': 'yellow'}}