code: def set_logger(self, logger):
          
  
          # we don't expect anything back
          try:
              self.library.set_logger.restype = None
          except AttributeError:
              logger.warn("Tried to set logger but method is not implemented in %s", self.engine)
              return
          # as an argument we need a pointer to a fortran log func...
          self.library.set_logger.argtypes = [
              (fortran_log_functype)]
  
          self.library.set_logger(fortran_log_func)
docs: subscribe to fortran log messages