sofa-boot icon indicating copy to clipboard operation
sofa-boot copied to clipboard

springboot2.2废弃了logging.path, 2.3已删除该属性,应使用logging.file.path

Open Kunple-w opened this issue 3 years ago • 2 comments

Describe the bug

Spring boot2.3已经不支持logging.path, sofa的各种包的log-conf.xml未更新

You should be using logging.file.path with Spring Boot 2.2 and later. logging.path was deprecated in 2.2 in favour of logging.file.path. It was then removed in 2.3.

see https://github.com/spring-projects/spring-boot/issues/22295

To Reproduce

Steps to reproduce the behavior:

  1. 使用sofa3.10.0, 按照sofa guides配置logging.path,启动后并没有出现文档中的一些日志文件;
  2. 降级为sample中的3.2.0版本,日志文件出现;

Expected behavior

应支持logging.file.path属性

Screenshots

2个属性同时配置: image log-con.xml image

Environment:

  • Project Version [e.g. SOFA-RPC 1.0.0] : sofaboot 3.9.0
  • Language Version (e.g. Go 1.13): jdk8
  • OS version (e.g. uname -a): Darwin
  • IDE version: idea

Kunple-w avatar Feb 27 '22 08:02 Kunple-w

下个版本修正

alaneuler avatar Mar 11 '22 03:03 alaneuler

我所遇见的问题是,两个属性都配置,日志路径也没有生效,有遇到同样问题的吗。

l10178 avatar Sep 30 '22 03:09 l10178

sofa 中间件中使用 sofa-common-tools 打印的日志,日志空间和 SOFABoot 应用程序是隔离的,因此可以同时使用 logging.path 以及 logging.file.path 属性分别定义 SOFA 中间件和 SOFABoot 应用程序的日志路径

HzjNeverStop avatar Dec 13 '22 09:12 HzjNeverStop