docs: def build_flask_like_logger(
      logger_name='logger',
      log_level=None,
      log_dir=None,
      console_enabled=True,
      max_log_size=5*1024*1024,
      max_backup_logs=5,
      host=None):
      '''
      Generates a logger that outputs messages in the same format as default Flask applications.
      '''
      old_logger_class = logging.getLoggerClass()
      logging.setLoggerClass(FlaskLikeLogger)
      logger = logging.getLogger(logger_name)
      logging.setLoggerClass(old_logger_class)
  
      if log_level:
          logger.setLevel(log_level)
      if host:
          logger.set_host(host)
      logger.apply_default_handlers(log_dir, console_enabled, max_log_size, max_backup_logs)
      return logger