code: def main_only_quicksetup_rootlogger(level: int = logging.DEBUG,
                                      with_process_id: bool = False,
                                      with_thread_id: bool = False) -> None:
      
      # Nasty. Only call from "if __name__ == '__main__'" clauses!
      rootlogger = logging.getLogger()
      configure_logger_for_colour(rootlogger, level, remove_existing=True,
                                  with_process_id=with_process_id,
                                  with_thread_id=with_thread_id)
docs: Quick function to set up the root logger for colour.
  
      Should ONLY be called from the ``if __name__ == 'main'`` script;
      see https://docs.python.org/3.4/howto/logging.html#library-config.
  
      Args:
          level: log level to set
          with_process_id: include the process ID in the logger's name?
          with_thread_id: include the thread ID in the logger's name?