code: def basicConfig(level=logging.WARNING, transient_level=logging.NOTSET):
      
      fmt = "%(asctime)s [%(levelname)s] [%(name)s:%(lineno)d] %(message)s"
      logging.root.setLevel(transient_level)  # <--- IMPORTANT
      hand = TransientStreamHandler(level=level)
      hand.setFormatter(logging.Formatter(fmt))
      logging.root.addHandler(hand)
docs: Shortcut for setting up transient logging
  
      I am a replica of ``logging.basicConfig`` which installs a
      transient logging handler to stderr.