I have been trying to set Wire to not send DEBUG to console, but no matter what I do, it won't listen.
I have log4j initialized properly: I do not get any appender messages, log4j is obeying my class and console levels.
In log4j.properties I have every foreseeable way to write wire:
log4j.logger.org.httpclient=ERROR
log4j.logger.org.apache=ERROR
log4j.logger.org.apache.http=ERROR
log4j.logger.org.apache.http.wire=ERROR
log4j.logger.org.apache.http.wire.headers=ERROR
log4j.logger.httpclient.wire=ERROR
log4j.logger.httpclient.headers=ERROR
log4j.logger.httpclient.content=ERROR
log4j.logger.org.apache.hc.client5.http.wire=ERROR
log4j.logger.httpclient=ERROR
wire=ERROR
http=ERROR
I then thought why not print all loggers after calling it?
So i did just that. I get a nice printout of everything mentioned above, and my current class. Nothing else prints from iterating through LogManager.getCurrentLoggers()
I think I've read every result on Google at this point. Any guidance would be appreciated.
About the project: Project is a maven Project - pom.xml includes the resource folder. To make this work I literally made a ControlLogging class and PropertyConfiguratior.configure("log4j.properties")
is called first. I call this function @Before
test runs, and in the static class that's making the API calls. Doing the printing at any point doesn't reveal the Wire logger.