All work

Select view

Select search mode

 
28 of 28

Provide slf4j 2.0 factory

Fixed

Description

Per

s there interest in adding a slf4j 2 factory to clojure tools.logging ?

slf4j 2 changed how it discovers implementations - now it uses java ServiceLoader (standard) facilities.

On the client side version 1.x of API is compatible with version 2.x of API.
Implementations however have changed - how the implementation is loaded.

I don't think the old way of loading is working to find new slf4j 2.0 implementations that use service loader .
(edited) .

Environment

None

Details

Assignee

Reporter

Priority

Created November 15, 2022 at 6:22 PM
Updated February 2, 2023 at 3:45 PM
Resolved February 2, 2023 at 3:45 PM

Activity

Show:

Alex MillerFebruary 2, 2023 at 3:45 PM

From Eugen on Slack: "All that it's needed is to have the new slf4j 2.0 API on the classpath.
clojure tools-logging uses factory# (org.slf4j.LoggerFactory/getILoggerFactory) which was migrated to use ServiceLoader". I updated test deps to 2.0.6, but made no code changes.

Flag notifications