def set_log_methods(cls, logger):
 cls.__logger = logger
 for attr in ('debug', 'info', 'warning', 'error', 'critical', 'exception'):
  setattr(cls, attr, getattr(logger, attr))

def set_log_methods ( cls , logger ) : cls . __logger = logger for attr in ( 'debug' , 'info' , 'warning' , 'error' , 'critical' , 'exception' ) : setattr ( cls , attr , getattr ( logger , attr ) )
bind standard loggers methods as methods on the class .