package zutil.log; import java.util.logging.Formatter; import java.util.logging.Handler; import java.util.logging.Level; import java.util.logging.Logger; /** * Utility functions for the standard Java Logger * * @author Ziver */ public class LogUtil { private LogUtil(){} /** * @return a new Logger for the calling class */ public static Logger getLogger(){ return Logger.getLogger(getCalingClass()); } /** * @return the parent class other than Logger in the stack */ public static String getCalingClass(){ StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace(); for(int i=1; i