将Log4j日志实时写入Kafka
1.创建maven项目,引入依赖dependency> groupId>org.apache.kafkagroupId> artifactId>kafka_2.11artifactId> version>0.11.0.0version>dependency>dependency> groupId>log4jgroupId> artifactId