code: def reset_logformat_timestamped(logger: logging.Logger,
                                  extraname: str = "",
                                  level: int = logging.INFO) -> None:
      
      namebit = extraname + ":" if extraname else ""
      fmt = ("%(asctime)s.%(msecs)03d:%(levelname)s:%(name)s:" + namebit +
             "%(message)s")
      # logger.info(fmt)
      reset_logformat(logger, fmt=fmt)
      # logger.info(fmt)
      logger.setLevel(level)
docs: Apply a simple time-stamped log format to an existing logger, and set
      its loglevel to either ``logging.DEBUG`` or ``logging.INFO``.
  
      Args:
          logger: logger to modify
          extraname: additional name to append to the logger's name
          level: log level to set