io.zulia.log.LogUtil Maven / Gradle / Ivy
package io.zulia.log;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Created by Payam Meyer on 8/3/17.
* @author pmeyer
*/
public class LogUtil {
public static void init() {
Logger logger = Logger.getLogger("");
for (Handler h : logger.getHandlers()) {
CustomLogFormatter formatter = new CustomLogFormatter();
h.setFormatter(formatter);
}
Logger.getLogger("org.mongodb").setLevel(Level.WARNING);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy