com.alibaba.dubbo.common.logger.Logger.isWarnEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(169)

本文整理了Java中com.alibaba.dubbo.common.logger.Logger.isWarnEnabled()方法的一些代码示例,展示了Logger.isWarnEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isWarnEnabled()方法的具体详情如下:
包路径:com.alibaba.dubbo.common.logger.Logger
类名称:Logger
方法名:isWarnEnabled

Logger.isWarnEnabled介绍

[英]警告信息是否开启
[中]警告信息是否开启

代码示例

代码示例来源:origin: com.alibaba/dubbo

@Override
public boolean isWarnEnabled() {
  try {
    return logger.isWarnEnabled();
  } catch (Throwable t) {
    return false;
  }
}

代码示例来源:origin: com.alibaba/dubbo-common

@Override
public boolean isWarnEnabled() {
  try {
    return logger.isWarnEnabled();
  } catch (Throwable t) {
    return false;
  }
}

代码示例来源:origin: remoting/dubbox

public boolean isWarnEnabled() {
  try {
    return logger.isWarnEnabled();
  } catch (Throwable t) {
    return false;
  }
}

代码示例来源:origin: remoting/dubbox

public boolean isWarnEnabled() {
  try {
    return logger.isWarnEnabled();
  } catch (Throwable t) {
    return false;
  }
}

代码示例来源:origin: com.alibaba/dubbo

public static void warn(Logger logger, String msg, Throwable e) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(msg, e);
  }
}

代码示例来源:origin: linux-china/dubbo3

public static void warn(Logger logger, String msg, Throwable e) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(msg, e);
  }
}

代码示例来源:origin: com.alibaba/dubbo

public static void warn(Logger logger, Throwable e) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(e);
  }
}

代码示例来源:origin: com.alibaba/dubbo

public static void warn(Logger logger, String msg) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(msg);
  }
}

代码示例来源:origin: com.alibaba/dubbo-common

public static void warn(Logger logger, String msg) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(msg);
  }
}

代码示例来源:origin: linux-china/dubbo3

public static void warn(Logger logger, Throwable e) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(e);
  }
}

代码示例来源:origin: linux-china/dubbo3

public static void warn(Logger logger, String msg) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(msg);
  }
}

代码示例来源:origin: linux-china/dubbo3

public static void warn(Logger logger, String msg, Throwable e) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(msg, e);
  }
}

代码示例来源:origin: linux-china/dubbo3

public static void warn(Logger logger, String msg) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(msg);
  }
}

代码示例来源:origin: linux-china/dubbo3

public static void warn(Logger logger, Throwable e) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(e);
  }
}

代码示例来源:origin: com.alibaba/dubbo-common

public static void warn(Logger logger, Throwable e) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(e);
  }
}

代码示例来源:origin: com.alibaba/dubbo-common

public static void warn(Logger logger, String msg, Throwable e) {
  if (logger == null) {
    return;
  }
  if (logger.isWarnEnabled()) {
    logger.warn(msg, e);
  }
}

代码示例来源:origin: linux-china/dubbo3

private void stopHeartbeatTimer() {
  if (heatbeatTimer != null && ! heatbeatTimer.isCancelled()) {
    try {
      heatbeatTimer.cancel(true);
      scheduled.purge();
    } catch ( Throwable e ) {
      if (logger.isWarnEnabled()) {
        logger.warn(e.getMessage(), e);
      }
    }
  }
  heatbeatTimer =null;
}

代码示例来源:origin: com.alibaba/dubbo

private void stopHeartbeatTimer() {
  if (heartbeatTimer != null && !heartbeatTimer.isCancelled()) {
    try {
      heartbeatTimer.cancel(true);
      scheduled.purge();
    } catch (Throwable e) {
      if (logger.isWarnEnabled()) {
        logger.warn(e.getMessage(), e);
      }
    }
  }
  heartbeatTimer = null;
}

代码示例来源:origin: com.alibaba/dubbo

@Override
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
  Set<String> resolvedPackagesToScan = resolvePackagesToScan(packagesToScan);
  if (!CollectionUtils.isEmpty(resolvedPackagesToScan)) {
    registerServiceBeans(resolvedPackagesToScan, registry);
  } else {
    if (logger.isWarnEnabled()) {
      logger.warn("packagesToScan is empty , ServiceBean registry will be ignored!");
    }
  }
}

代码示例来源:origin: SpringCloud/spring-cloud-dubbo

@Override
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
  Set<String> resolvedPackagesToScan = resolvePackagesToScan(packagesToScan);
  if (!CollectionUtils.isEmpty(resolvedPackagesToScan)) {
    registerServiceBeans(resolvedPackagesToScan, registry);
  } else {
    if (logger.isWarnEnabled()) {
      logger.warn("packagesToScan is empty , ServiceBean registry will be ignored!");
    }
  }
}

相关文章