Java 类org.apache.logging.log4j.util.ReflectionUtil 实例源码

项目:hibernateMaster    文件:Log4jLoggerFactory.java   
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));
}
项目:NoMoreOversleeps    文件:LogWrapper.java   
/**
 * 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));
}
项目:NapBot    文件:LogWrapper.java   
/**
 * 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));
}