• Spring boot 2 integrated log4j2 log framework


    Preface Log4j2yesLog4jAnd provides manyLogbackAvailable improvements, while addressingLogbackSome inherent problems in the architecture. And we will use it in log processingkafkaAs a log pipeline. andkafkaClient dependency andLogbackYou can choose to exclude dependency conflicts or useLog4j2 。 Exclude logback dependency Spring Boot 2.xDefault useLogbackLog framework, to useLog4j2Must be excluded firstLogback。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <! — exclude […]

  • Troubleshooting process of single machine log not printing in a production environment


    background When Q business system checks before publishing, it is found that the main log of a single machine is not printed, while the log performance of other production machines is normal. Investigation flow Reflection By observing the service entry of the main service through greys, it is found that the request acceptance, logical processing […]