【发布时间】:2020-01-02 15:43:16
【问题描述】:
这是一个奇怪的问题。我有一个具有不同分支的 Spring Boot 应用程序。突然之间,其中一个功能分支以 iRAv2 格式显示日志(如下所示),并从实际日志消息中跳过了一些原始日志消息。除了 Spring Boot 默认值之外,我不使用任何特定的日志记录库
iRAv2 格式日志:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.2.RELEASE)
Jan 02 10:34:23 [iRAv2] Starting PresApplication on testhostname with PID 20704 | o.s.boot.StartupInfoLogger:55
Jan 02 10:34:23 [iRAv2] No active profile set, falling back to default profiles: default | o.s.boot.SpringApplication:651
正确格式的日志:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.2.RELEASE)
2020-01-02 10:37:36.454 INFO 20937 --- [ main] g.c.c.o.l.patientreg.PresApplication : Starting PresApplication on testhostname with PID 20937
2020-01-02 10:37:36.459 INFO 20937 --- [ main] g.c.c.o.l.patientreg.PresApplication : No active profile set, falling back to default profiles: default
2020-01-02 10:37:37.435 INFO 20937 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2020-01-02 10:37:37.442 INFO 20937 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-01-02 10:37:37.443 INFO 20937 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.29]
2020-01-02 10:37:37.680 INFO 20937 --- [ main] org.apache.jasper.servlet.TldScanner : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2020-01-02 10:37:37.683 INFO 20937 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
【问题讨论】:
-
该功能分支中的哪些文件已更改?
-
什么是 iRAv2?你会在应用程序的任何地方使用它吗?
-
@SimonMartinelli 不,我不在任何地方使用它。其实我也不知道是什么
-
@DavidLavender 我比较了两个分支,没有区别
-
@DavidLavender 我发现了这个问题。导致此问题的第 3 方库之一。但是这个问题并不一致,这意味着我有那个库在开发和掌握中,我没有看到任何问题。无论如何,我暂时定义了自定义 logback.xml。
标签: java spring spring-boot