ch.inftec.ju.util.JuLogUtils Maven / Gradle / Ivy
package ch.inftec.ju.util;
import java.net.URL;
import java.util.List;
/**
* Logging related utility functions.
* @author [email protected]
*
*/
public class JuLogUtils {
/**
* Helper method to output all log4j configuration files on the classpath to system.err
*
* Helpful for debugging when we have multiple configuration files on the classpath
*
* Note: Setting -Dlog4j.debug, Log4J will also output debug info on how it is configured
*/
public static void showLog4jConfigFiles() {
List configFiles = JuUrl.resource().getAll("log4j.xml");
System.err.println("Log4J Config Files on Classpath:");
for (URL configFile : configFiles) {
System.err.println(configFile);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy