org.apache.openejb.util.Logger.isWarningEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(159)

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

Logger.isWarningEnabled介绍

暂无

代码示例

代码示例来源:origin: org.apache.openejb/openejb-core

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

代码示例来源:origin: org.apache.tomee/openejb-core

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

代码示例来源:origin: org.apache.openejb/openejb-core

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

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

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

代码示例来源:origin: org.apache.tomee/openejb-core

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

代码示例来源:origin: org.apache.openejb/openejb-core

@SuppressWarnings("UnusedDeclaration")
public boolean isLevelEnable(final String level) {
  if ("info".equals(level.toLowerCase())) {
    return isInfoEnabled();
  } else if ("debug".equals(level.toLowerCase())) {
    return isDebugEnabled();
  } else if ("warning".equals(level.toLowerCase())) {
    return isWarningEnabled();
  } else if ("fatal".equals(level.toLowerCase())) {
    return isFatalEnabled();
  } else if ("error".equals(level.toLowerCase())) {
    return isErrorEnabled();
  }
  return false;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String warning(final String message) {
  if (isWarningEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.warn(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String warning(final String message, final Throwable t) {
  if (isWarningEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.warn(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

public String warning(String message, Throwable t) {
  if (isWarningEnabled()) {
    String msg = getMessage(message, baseName);
    logStream.warn(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.tomee/openejb-core

public String warning(final String message) {
  if (isWarningEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.warn(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.tomee/openejb-core

public String warning(final String message, final Throwable t) {
  if (isWarningEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.warn(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

public String warning(String message) {
  if (isWarningEnabled()) {
    String msg = getMessage(message, baseName);
    logStream.warn(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.tomee/openejb-core

@SuppressWarnings("UnusedDeclaration")
public boolean isLevelEnable(final String level) {
  final String levelLowerCase = level.toLowerCase(Locale.ENGLISH);
  if ("info".equals(levelLowerCase)) {
    return isInfoEnabled();
  } else if ("debug".equals(levelLowerCase)) {
    return isDebugEnabled();
  } else if ("warning".equals(levelLowerCase)) {
    return isWarningEnabled();
  } else if ("fatal".equals(levelLowerCase)) {
    return isFatalEnabled();
  } else if ("error".equals(levelLowerCase)) {
    return isErrorEnabled();
  }
  return false;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String warning(final String message, final Throwable t, final Object... args) {
  if (isWarningEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.warn(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

public String warning(String message, Object... args) {
  if (isWarningEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.warn(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.tomee/openejb-core

public String warning(final String message, final Throwable t, final Object... args) {
  if (isWarningEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.warn(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.tomee/openejb-core

public String warning(final String message, final Object... args) {
  if (isWarningEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.warn(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String warning(final String message, final Object... args) {
  if (isWarningEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.warn(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

public String warning(String message, Throwable t, Object... args) {
  if (isWarningEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.warn(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

@Override
public void endContext(final Class<? extends Annotation> scopeType, final Object endParameters) {
  if (supportsContext(scopeType)) {
    if (scopeType.equals(RequestScoped.class)) {
      destroyRequestContext();
    } else if (scopeType.equals(SessionScoped.class)) {
      destroySessionContext((HttpSession) endParameters);
    } else if (scopeType.equals(ApplicationScoped.class)) {
      destroyApplicationContext();
    } else if (scopeType.equals(Dependent.class)) { //NOPMD
      // Do nothing
    } else if (scopeType.equals(Singleton.class)) {
      destroySingletonContext();
    } else if (supportsConversation() && scopeType.equals(ConversationScoped.class)) {
      destroyConversationContext();
    } else {
      if (logger.isWarningEnabled()) {
        logger.warning("CDI-OpenWebBeans container in OpenEJB does not support context scope "
          + scopeType.getSimpleName()
          + ". Scopes @Dependent, @RequestScoped, @ApplicationScoped and @Singleton are supported scope types");
      }
    }
  }
}

相关文章