Eclipse SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

hueck

Mitglied
Hallo,

sobald ich per m2e plugin eine maven goal auf eine pom.xml aufrufe bekomme ich folgenden Fehler:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See SLF4J Error Codes for further details.

Ok, wenn ich dem Linke folge steht ja da:

This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J binding could be found on the class path. Placing one (and only one) of slf4j-nop.jar, slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem.

Aber wieso tritt das Problem überhaupt auf?

Noch nehme ich slf4j nicht her.

Habe das ganze mal testweisse als maven dependency hinzugefügt, aber das Problem tritt weiterhin auf.

Gruss
 

AngryDeveloper

Bekanntes Mitglied
Steht doch eigentlich da.
SLF4J ist nur eine Fassade und du ziehst kein binding an. Wenn SLF4J nichts im classpath findet, nimmt er eben standardmäßig den NOP Logger.
Im SLF4J Manual kannst du es dir mal detaillierter anschauen: SLF4J Manual

Ich persönlich würde als binding Logback empfehlen.
 

Neue Themen


Oben