I actually had the mongo-java-driver: 3.12.4 installed. But now when i revert the changes it still prints the logging. Must be java then since i updated that also when i updated the drivers. But i used this to hide the logging Here
Are you trying to disable all SLF4J-based logging, or just logging from the driver?
Since i’m using the Listeners to log the connections i don’t really want the drive to print in the console that it connects to the server. So yes just the driver. I tried to use slf4j before but whatever i did, nothing happend.
I should have asked which logging system that you are actually using. But given what you have installed, it sounds like Log4J. Assuming that, what you should do is
Remove any other SLF4J bridge library. From what I can tell, that would be logback-classic
Configure log4j to disable all driver logging. Looking at Log4J documentation, that would look something like this
Remove any other SLF4J bridge library. From what I can tell, that would be logback-classic
I removed the logback-classic.
Configure log4j to disable all driver logging. Looking at Log4J documentation, that would look something like this
I looked at the Log4J docs, i tested with the files log4j.xml and log4j2.xml inside the src/resource/
I compiled it to a .jar file after and the .xml file was there atleast, but it did not work either.
Do i need to write some code to make it work / did i put the files at wrong place?
This is the logging dependency’s i have now.
slf4j-api:2.0.4
log4j-api:2.19.0
log4j-core:2.19.0
log4j-slf4j2-impl:2.19.0
When i looked through the minecraft paper .pom files they had the libaries
Okey everything works until i add the minecraft paper inside the .pom.
Then it stops.
But… if i use the System.out.println(“test”); it has edited my output atleast
not it is 00:00:00 INFO]: [Plugin] [STDOUT] TEST
Before it was only 00:00:00 INFO]: [Plugin] TEST