#NEWLINE# def _set_logger( self , name = None ) : #NEWLINE# #INDENT# 'Adds a logger with a given `name`.\n\n        If no name is given, name is constructed as\n        `type(self).__name__`.\n\n        ' #NEWLINE# if ( name is None ) : #NEWLINE# #INDENT# cls = self . __class__ #NEWLINE# name = ( '%s.%s' % ( cls . __module__ , cls . __name__ ) ) #NEWLINE# #UNINDENT# self . _logger = logging . getLogger ( name )