def colorize_log(info_level, text):
 if (info_level not in LOG_LEVELS.keys()):
  raise ValueError(('Wrong `info_level` value: %s' % info_level))
 log = LOG_LEVELS[info_level]
 print ('[%s%s%s] %s' % (log['color'], log['name'], COLORS['std'], text))

def colorize_log ( info_level , text ) : if ( info_level not in LOG_LEVELS . keys ( ) ) : raise ValueError ( ( 'Wrong `info_level` value: %s' % info_level ) ) log = LOG_LEVELS [ info_level ] print ( '[%s%s%s] %s' % ( log [ 'color' ] , log [ 'name' ] , COLORS [ 'std' ] , text ) )
print text to stdout considering its info_level info_level can be usage .