#NEWLINE# def _configure_logging( self , loglevel ) : #NEWLINE# #INDENT# self . log = logging . getLogger ( 'babel' ) #NEWLINE# self . log . setLevel ( loglevel ) #NEWLINE# if loglevel . log . handlers : #NEWLINE# #INDENT# handler = self . log . handlers [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# handler = logging . StreamHandler ( ) #NEWLINE# self . log . addHandler ( handler ) #NEWLINE# #UNINDENT# handler . setLevel ( loglevel ) #NEWLINE# formatter = logging . Formatter ( '%(message)s' ) #NEWLINE# handler . setFormatter ( formatter )