code: def setLogger(self, logger):
          
          self.logger = logger
          if logger is None:
              self.logger = logging.getLogger("capitains_nautilus")
              formatter = logging.Formatter("[%(asctime)s] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s")
              stream = FlaskNautilus.LoggingHandler()
              stream.setLevel(logging.INFO)
              stream.setFormatter(formatter)
              self.logger.addHandler(stream)
  
          if self.resolver:
              self.resolver.logger = self.logger
  
          return self.logger
docs: Set up the Logger for the application
  
          :param logger: logging.Logger object
          :return: Logger instance