I am getting tons of info log messages from a 3rd party jar in my eclipse console. Cracking open the jar I see that it uses java.util.logging. I would like to set the outpu
I think you may have the following snippet useful. It will allow you to set the log behaviour at package level:
Logger logger = Logger.getLogger("org.apache.axiom");
logger.setLevel(Level.WARN);
Before decompile the jar to find how to set Log level you can try to search the setLogLevel api for which component you want debug more.
setLogWriter(new PrintWriter(System.out));
Have you used JConsole to determine that:
You can also add the following code to check that your config file is working:
public static void main(String[] arg) throws Exception {
String p = System.getProperty("java.util.logging.config.file");
System.out.println(p);
System.out.println(new File(p).length());
System.out.println(Logger.getLogger("").getLevel());
}