Logback: How to remove class names and log level from Log file?
问题 I am using Logback in my Spring boot application. In my log file I currently get the sample output: 16:09:43.299 [pool-2-thread-1] INFO c.b.r.h.k.s.myClassName - Log message How can I change my log settings so that it only looks like the following: 16:09:43.299 Log message I.e removing the "[pool-2-thread-1] INFO" from the log statement. 回答1: If you're using Spring Boot default console and file logs, i.e. haven't any logback.xml in your classpath, you can use logging.pattern.console and