public static void toolSetupLog4j(String defaultLevel, String propsFile) { if (propsFile != null && new File(propsFile).exists()) { PropertyConfigurator.configure(propsFile);
public static void toolSetupLog4j(String defaultLevel, String logFile, boolean showThreads) { String level = System.getProperty("zimbra.log4j.level"); if (level == null) { level = defaultLevel; } Properties p = new Properties(); p.put("log4j.rootLogger", level + ",A1"); if (logFile != null) { p.put("log4j.appender.A1", "org.apache.log4j.FileAppender"); p.put("log4j.appender.A1.File", logFile); p.put("log4j.appender.A1.Append", "false");
    public static void toolSetupLog4j(String defaultLevel, String propsFile) {           if (propsFile != null && new File(propsFile).exists()) {        	PropertyConfigurator.configure(propsFile);        } else {            toolSetupLog4j(defaultLevel, null, false);        }    }