#NEWLINE# def class_logger( cls ) : #NEWLINE# #INDENT# logger = logging . getLogger ( ( ( logger . __module__ + '.' ) + cls . __name__ ) ) #NEWLINE# cls . _should_log_debug = ( lambda self : logger . isEnabledFor ( logging . DEBUG ) ) #NEWLINE# cls . _should_log_info = ( lambda self : logger . isEnabledFor ( logging . INFO ) ) #NEWLINE# cls . logger = logger #NEWLINE# _logged_classes . add ( cls ) #NEWLINE# return cls