• Solve the problems encountered by slf4j and logback classic


    Pits encountered by slf4j and logback classic In the past, we didn’t pay attention to the printing of logs. Recently, the project needs to use logs to record the time-consuming performance, and record the problems encountered during the integration of logs. Problem 1: when the server starts, it prompts that the implementation class slf4j is […]

  • 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 […]

  • Full Link Log Tracking Based on Spring Boot + Dubbo (II)


    I. Summary Next to the last article, after completing the analysis, we need to implement it concretely. service-aImplementing Dubbo services. service-bImplementing web services and callingservice-aImplemented services. II. Realization 2.1 Log Collection and Storage This example directly uses Aliyun Log Service to store and retrieve data.Aliyun Log Logback AppenderLog collection and upload. In fact, Ali implemented […]