I use a legacy library that writes logs using log4j. My default log4j.properties file directs the log to the console, but in some specific functions of my main program, I would
You could try TO disable it changing your log4j.properties:
log4j.rootLogger=off, stdout #log4j.logger.ac.biu.nlp.nlp.engineml=info, logfile #log4j.logger.org.BIU.utils.logging.ExperimentLogger=warn ...
Ref: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html#OFF