From 64d42fc0fb717343eefda97e7b317a9c5f156a04 Mon Sep 17 00:00:00 2001 From: Mikkey-f <178465103+Mikkey-f@users.noreply.github.com> Date: Wed, 26 Aug 2026 20:14:19 +0800 Subject: [PATCH] feat: upgrade slf4j to 2.0.18 and replace logback with slf4j-simple (#905) --- fesod-sheet/src/test/resources/logback.xml | 34 ------------------- .../test/resources/simplelogger.properties | 27 +++++++++++++++ pom.xml | 19 +++++------ 3 files changed, 36 insertions(+), 44 deletions(-) delete mode 100644 fesod-sheet/src/test/resources/logback.xml create mode 100644 fesod-sheet/src/test/resources/simplelogger.properties diff --git a/fesod-sheet/src/test/resources/logback.xml b/fesod-sheet/src/test/resources/logback.xml deleted file mode 100644 index f1e0f864f..000000000 --- a/fesod-sheet/src/test/resources/logback.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - ${CONSOLE_LOG_PATTERN} - utf8 - - - - - - - diff --git a/fesod-sheet/src/test/resources/simplelogger.properties b/fesod-sheet/src/test/resources/simplelogger.properties new file mode 100644 index 000000000..6a07ba767 --- /dev/null +++ b/fesod-sheet/src/test/resources/simplelogger.properties @@ -0,0 +1,27 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# slf4j-simple configuration (replaces the former logback.xml test setup). +# Keeps the same console output shape: time [thread] level logger - message. +org.slf4j.simpleLogger.defaultLogLevel=info +org.slf4j.simpleLogger.showDateTime=true +org.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS +org.slf4j.simpleLogger.showThreadName=true +org.slf4j.simpleLogger.showLogName=true +org.slf4j.simpleLogger.showShortLogName=false +org.slf4j.simpleLogger.levelInBrackets=false +org.slf4j.simpleLogger.outputBufferSize=-1 diff --git a/pom.xml b/pom.xml index 4cfb75f27..35d0360f5 100644 --- a/pom.xml +++ b/pom.xml @@ -94,16 +94,15 @@ under the License. 5.5.1 3.9.11 2.21.0 - 1.7.36 + 2.0.18 1.18.44 5.3.39 2.0.64 2.7.18 - 1.7.36 - 1.7.36 - 1.7.36 + 2.0.18 + 2.0.18 + 2.0.18 2.24.3 - 1.2.13 5.15.0 0.8.15 5.13.4 @@ -243,9 +242,9 @@ under the License. ${log4j-to-slf4j.version} - ch.qos.logback - logback-classic - ${logback-classic.version} + org.slf4j + slf4j-simple + ${slf4j-simple.version} org.springframework.boot @@ -371,8 +370,8 @@ under the License. test - ch.qos.logback - logback-classic + org.slf4j + slf4j-simple test