Protokollierung arbeitet nicht mit SL4J -Annotation, auch wenn sie sich in meinem Abhängigkeitsbaum befindetJava

Java-Forum
Anonymous
 Protokollierung arbeitet nicht mit SL4J -Annotation, auch wenn sie sich in meinem Abhängigkeitsbaum befindet

Post by Anonymous »

Ich arbeite an einem kleinen Projekt mit Spring Boot und die Protokollierung scheint nicht zu funktionieren.2025-03-02 13:44:41 [JDALogger] [WARN] Using fallback logger due to missing SLF4J implementation.
2025-03-02 13:44:41 [JDALogger] [WARN] Please setup a logging framework to use JDA.
2025-03-02 13:44:41 [JDALogger] [WARN] You can use our logging setup guide https://jda.wiki/setup/logging/
2025-03-02 13:44:41 [JDALogger] [WARN] To disable the fallback logger, add the slf4j-nop dependency or use JDALogger.setFallbackLoggerEnabled(false)
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
< /code>
Dies ist mein Pom: < /p>

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0

org.example
app
1.0-SNAPSHOT


21
21
UTF-8



org.projectlombok
lombok
1.18.30
provided


junit
junit
RELEASE
test


net.dv8tion
JDA
5.3.0


org.junit.jupiter
junit-jupiter-api
5.11.4
test


org.mockito
mockito-junit-jupiter
5.14.2
test


org.pitest
pitest-parent
1.16.2
pom





com.diffplug.spotless
spotless-maven-plugin
2.43.0










check

package




org.pitest
pitest-maven
1.16.2




< /code>
Ich verwende die SL4J -Annotation. Ich sah de Library SL4J-API in meinem Abhängigkeitsbaum. Ich habe versucht, manuell auch manuell hinzuzufügen, und es scheint immer noch so zu funktionieren. Irgendeine Idee, warum es ohne diesen Ansatz nicht funktioniert? SL4J-API enthält nicht die Implementierung für die Protokollierung?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post