org.apache.log.Logger.isWarnEnabled()方法的使用及代码示例

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

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

Logger.isWarnEnabled介绍

[英]Determine if messages of priority WARN will be logged.
[中]确定是否将记录优先级警告消息。

代码示例

代码示例来源:origin: org.freemarker/freemarker

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

代码示例来源:origin: commons-logging/commons-logging

/**
   * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
   */
  public boolean isWarnEnabled() {
    return getLogger().isWarnEnabled();
  }
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
 */
public boolean isWarnEnabled() {
  return getLogger().isWarnEnabled();
}

代码示例来源:origin: org.apache.avalon.framework/avalon-framework-impl

/**
 * Determine if messages of priority "warn" will be logged.
 *
 * @return true if "warn" messages will be logged
 */
public final boolean isWarnEnabled()
{
  return m_logger.isWarnEnabled();
}

代码示例来源:origin: org.freemarker/freemarker-gae

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

代码示例来源:origin: org.freemarker/com.springsource.freemarker

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

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

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

代码示例来源:origin: apache/activemq-artemis

/**
   * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
   */
  public boolean isWarnEnabled() {
    return getLogger().isWarnEnabled();
  }
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
   * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
   */
  public boolean isWarnEnabled() {
    return getLogger().isWarnEnabled();
  }
}

代码示例来源:origin: apache/activemq-artemis

/**
   * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
   */
  public boolean isWarnEnabled() {
    return getLogger().isWarnEnabled();
  }
}

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

/**
   * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
   */
  public boolean isWarnEnabled() {
    return getLogger().isWarnEnabled();
  }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.logging

/**
 * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
 */
public boolean isWarnEnabled() {
  return getLogger().isWarnEnabled();
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
   * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
   */
  public boolean isWarnEnabled() {
    return getLogger().isWarnEnabled();
  }
}

代码示例来源:origin: Nextdoor/bender

/**
   * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
   */
  public boolean isWarnEnabled() {
    return getLogger().isWarnEnabled();
  }
}

代码示例来源:origin: org.apache.avalon.logkit/avalon-logkit

/**
 * Log a warn priority event.
 *
 * @param message the message
 */
public final void warn( final String message )
{
  if( isWarnEnabled() )
  {
    output( Priority.WARN, message, null );
  }
}

代码示例来源:origin: org.apache.tomcat.extras/tomcat-extras-juli-adapters

/**
   * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
   */
  public boolean isWarnEnabled() {
    return getLogger().isWarnEnabled();
  }
}

代码示例来源:origin: harbby/presto-connectors

/**
   * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
   */
  public boolean isWarnEnabled() {
    return getLogger().isWarnEnabled();
  }
}

代码示例来源:origin: org.apache.avalon.logkit/avalon-logkit

/**
 * Log a warn priority event.
 *
 * @param message the message
 * @param throwable the throwable
 */
public final void warn( final String message, final Throwable throwable )
{
  if( isWarnEnabled() )
  {
    output( Priority.WARN, message, throwable );
  }
}

代码示例来源:origin: org.apache.velocity/com.springsource.org.apache.velocity

/**
 * Checks to see whether the specified level is enabled.
 * @param level
 * @return True if the specified level is enabled.
 */
public boolean isLevelEnabled(int level)
{
  switch (level)
  {
    // For Avalon, no Trace exists. Log at debug level.
    case TRACE_ID:
    case DEBUG_ID:
      return logger.isDebugEnabled();
    case INFO_ID:
      return logger.isInfoEnabled();
    case WARN_ID:
      return logger.isWarnEnabled();
    case ERROR_ID:
      return logger.isErrorEnabled();
    default:
      return true;
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity

/**
 * Checks to see whether the specified level is enabled.
 * @param level
 * @return True if the specified level is enabled.
 */
public boolean isLevelEnabled(int level)
{
  switch (level)
  {
    // For Avalon, no Trace exists. Log at debug level.
    case TRACE_ID:
    case DEBUG_ID:
      return logger.isDebugEnabled();
    case INFO_ID:
      return logger.isInfoEnabled();
    case WARN_ID:
      return logger.isWarnEnabled();
    case ERROR_ID:
      return logger.isErrorEnabled();
    default:
      return true;
  }
}

相关文章