Spring Boot 作为 Windows 服务不会将错误日志写入文件

问题描述 投票:0回答:0

我将 spring boot 应用程序部署为 Windows 服务。尝试启动服务时,它因错误而停止。我知道错误原因,但我想在日志中查看它。 在日志输出中,消息正下方。

2023-04-12/16:05:41.916 boot.StartupInfoLogger         DEBUG Running with Spring Boot v2.7.8, Spring v5.3.25
2023-04-12/16:05:41.917 boot.SpringApplication         INFO  The following 1 profile is active: "test"
spring-boot logging logback spring-logback
© www.soinside.com 2019 - 2024. All rights reserved.