Logback 1.3.x supports jdk1.8

https://logback.qos.ch/dependencies.html

Version strategy

Logback 1.3.x supports the Java EE edition whereas logback 1.4.x supports Jakarta EE, otherwise the two versions are feature identical.

Given that downstream users are likely to depend on either Java EE or (in the javax namespace) or on Jakarta EE (in the jakarta namespace) in their projects, it was deemed important for logback to support both alternatives.

As such, logback 1.3.x supports the Java EE edition whereas logback 1.4.x supports Jakarta EE, otherwise the two versions are feature identical. Here is a summary of the differences:

Logback version JDK Enterprise Edition SLF4J version
1.3.x 8 Java EE (javax.* namespace) 2.0
1.4.x 11 Jakarta EE (jakarta.* namespace) 2.0

logback-core dependencies

Logback-core version Servlet-api version (optional) mail-api version (optional)
1.3.x javax.servlet 4.0.1 javax.mail 1.6.2
1.4.x jakarta.servlet 5.0.0 jakarta.mail 2.0.1

logback-classic dependencies

Same as logback-core.

logback-access dependencies

Logback-access version Servlet-api version Tomcat version Jetty Version
1.3.x javax.servlet 4.0.1 9.0.65 9.4.48.v20220622
1.4.x jakarta.servlet 5.0.0 10.0.10 11.0.6

|----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|---|
| Copyright © 2023 QOS.ch Sarl (Switzerland) | Logo created by Lise Martins | |

相关推荐
带刺的坐椅1 天前
Solon 的日志设计哲学:不只是用 SLF4J 做统一门面
java·logback·solon·log4j2
空谷有来人5 天前
Ubuntu22.04安装jdk17,配置环境变量
java·jdk
sun༒15 天前
Logback 日志框架总结:从入门到实战
单元测试·logback
zhixingheyi_tian16 天前
JVM 之 JIT
jdk
.柒宇.22 天前
ELK日志分析系统实战指南:Elasticsearch搭建与入门(8.18.8版本)
运维·elk·elasticsearch·logback·日志系统
要开心吖ZSH22 天前
一文搞懂:JDK 21 虚拟线程 vs N种异步方案,到底该怎么选?
java·数据库·jdk·虚拟线程
hdsoft_huge22 天前
SpringBoot系列17:日志体系Logback配置,日志分割、脱敏、异常堆栈收集规范(生产级落地)
java·spring boot·logback
倒流时光三十年23 天前
Logback 系列(13):生产环境配置建议清单
logback
倒流时光三十年23 天前
Logback 系列(12):高级篇 · MDC 链路追踪
logback
倒流时光三十年24 天前
Logback 系列(3):三大核心组件 Logger / Appender / Encoder
java·开发语言·logback