def get_logging_level():
 levels_dict = {10: 'DEBUG', 20: 'INFO', 30: 'WARNING', 40: 'ERROR', 50: 'CRITICAL'}
 print 'The current logging level is:', levels_dict[logger.getEffectiveLevel()]

def get_logging_level ( ) : levels_dict = { 10 : 'DEBUG' , 20 : 'INFO' , 30 : 'WARNING' , 40 : 'ERROR' , 50 : 'CRITICAL' } print 'The current logging level is:' , levels_dict [ logger . getEffectiveLevel ( ) ]
this function prints the current logging level of the main logger .