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

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

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

Logger.isDebugEnabled介绍

[英]调试信息是否开启
[中]调试信息是否开启

代码示例

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

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

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

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

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

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

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

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

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

@Override
public boolean isDebugEnabled() {
  return logger.isDebugEnabled();
}

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

@Override
public boolean isDebugEnabled() {
  return logger.isDebugEnabled();
}

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

public boolean isDebugEnabled() {
  return logger.isDebugEnabled();
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

private void decode(Object message) {
  if (message != null && message instanceof Decodeable) {
    try {
      ((Decodeable) message).decode();
      if (log.isDebugEnabled()) {
        log.debug("Decode decodeable message " + message.getClass().getName());
      }
    } catch (Throwable e) {
      if (log.isWarnEnabled()) {
        log.warn("Call Decodeable.decode failed: " + e.getMessage(), e);
      }
    } // ~ end of catch
  } // ~ end of if
} // ~ end of method decode

相关文章