SLF4J / SLF4J-544 [Open]
LoggerFactory only loads services from context class loader

==============================

Here's what changed in this issue in the last few minutes.

There is 1 comment.

View or comment on issue using this link
https://jira.qos.ch/browse/SLF4J-544

==============================
 1 comment
------------------------------

Benedikt Arnold on 14/Nov/22 12:29 PM
Hi!
We have a couple of google cloud functions using slf4j. While some of our 
dependencies started using slf4j 2.0.x we noticed that logging in our functions 
is broken.

I've created a small example to reproduce this issue locally by using google 
cloud function invoker. [https://github.com/benediktarnold/slf4j-cloudfunction]
The repo has two branches 
1. main using slf4j 1.7.36 (logging works as expected)
2. slf4j-2.0 with slf4j 2.0.3 (SLF4J: No SLF4J providers were found.)

I've already fixed it locally using the proposal in the tickets description by 
using an additional ServiceLoader.load call with the class loader of 
LoggerFactory. Still got some failing tests, but I could try to fix that and 
create a PR for it.

Regards, Ben


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)

_______________________________________________
slf4j-dev mailing list
slf4j-dev@qos.ch
https://mailman.qos.ch/cgi-bin/mailman/listinfo/slf4j-dev

Reply via email to