add batch output and  refactor when output to redis failed then output to another appender