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

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

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

Logger.isInfoEnabled介绍

[英]普通信息是否开启
[中]普通信息是否开启

代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

public void collect(URL statistics) {
  queue.offer(statistics);
  if (logger.isInfoEnabled()) {
    logger.info("collect statistics: " + statistics);
  }
}

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

@Override
public void register(URL url) {
  if (url == null) {
    throw new IllegalArgumentException("register url == null");
  }
  if (logger.isInfoEnabled()) {
    logger.info("Register: " + url);
  }
  registered.add(url);
}

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

public void register(URL url) {
  if (url == null) {
    throw new IllegalArgumentException("register url == null");
  }
  if (logger.isInfoEnabled()){
    logger.info("Register: " + url);
  }
  registered.add(url);
}

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

public void unregister(URL url) {
  if (url == null) {
    throw new IllegalArgumentException("unregister url == null");
  }
  if (logger.isInfoEnabled()){
    logger.info("Unregister: " + url);
  }
  registered.remove(url);
}

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

public void unregister(URL url) {
  if (url == null) {
    throw new IllegalArgumentException("unregister url == null");
  }
  if (logger.isInfoEnabled()){
    logger.info("Unregister: " + url);
  }
  registered.remove(url);
}

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

@Override
public void unregister(URL url) {
  if (url == null) {
    throw new IllegalArgumentException("unregister url == null");
  }
  if (logger.isInfoEnabled()) {
    logger.info("Unregister: " + url);
  }
  registered.remove(url);
}

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

public void register(URL url) {
  if (url == null) {
    throw new IllegalArgumentException("register url == null");
  }
  if (logger.isInfoEnabled()){
    logger.info("Register: " + url);
  }
  registered.add(url);
}

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

@Override
public void unregister(URL url) {
  if (url == null) {
    throw new IllegalArgumentException("unregister url == null");
  }
  if (logger.isInfoEnabled()) {
    logger.info("Unregister: " + url);
  }
  registered.remove(url);
}

相关文章