def _run_cmd(logger, cmd, args, kwargs):
    """Get a command from the process queue and run the command with the logger.

    Args:
        logger (logging.Logger): Logger to run the command with
        cmd (str): Logger method name to run
        args (tuple): Positional arguments for the method
        kwargs (dict): Key word arguments for the method.

    Returns:
        was_command (bool): True if the cmd name was a logger function.
    """
    if cmd == 'addHandler':
        # Recreate the handler in this process (Handlers have a RLock which is not serializable/pickleable)
        args = (args[0].create_handler(), ) + args[1:]

    func = getattr(logger, cmd, None)
    if func:
        func(*args, **kwargs)
        return True
    return False