How to set a fine grained logging to troubleshoot efficiently problems with a java connector?