简单spring boot+log4j+flume+kafka的日志实现 在安装好zookeeper、Kafka、flume的情况下 1.springboot的pom.xml导入依赖 <dependency> <groupId>org.apache.flume.flume-ng-clients</groupId> <artifactId>flume-ng-log4jappender</artifactId> <version>1.8.0</version> </dependency>