protected LoggerContext getContext() { final Class<?> anchor = ReflectionUtil.getCallerClass(steed.util.logging.Logger.class.getName(), "steed.util.logging"); return anchor == null ? LogManager.getContext() : getContext(ReflectionUtil.getCallerClass(anchor)); }
/** * Returns a Logger with the name of the calling class. * @return The Logger for the calling class. * @throws UnsupportedOperationException if the calling class cannot be determined. */ public static final Logger getLogger() { return LogManager.getLogger(ReflectionUtil.getCallerClass(2)); }