ch.qos.logback.classic.Logger.isWarnEnabled()方法的使用及代码示例

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

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

Logger.isWarnEnabled介绍

暂无

代码示例

代码示例来源:origin: ch.qos.logback/logback-classic

public boolean isWarnEnabled() {
  return isWarnEnabled(null);
}

代码示例来源:origin: ltsopensource/light-task-scheduler

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

代码示例来源:origin: ltsopensource/light-task-scheduler

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

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

public boolean isWarnEnabled() {
 return isWarnEnabled(null);
}

代码示例来源:origin: ch.qos.logback/log4j-bridge

/**
 * Delegates to {@link ch.qos.logback.classic.Logger#isWarnEnabled} method of logback
 */
public boolean isWarnEnabled() {
 return lbLogger.isWarnEnabled();
}

代码示例来源:origin: io.enoa/enoa-log-logback

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

代码示例来源:origin: tony19/logback-android

public boolean isWarnEnabled() {
 return isWarnEnabled(null);
}

代码示例来源:origin: com.github.ltsopensource/lts-core

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

代码示例来源:origin: ops4j/org.ops4j.pax.logging

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

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

public boolean isWarnEnabled() {
 return isWarnEnabled(null);
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

public boolean isWarnEnabled() {
  return isWarnEnabled(null);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.classic

public boolean isWarnEnabled() {
 return isWarnEnabled(null);
}

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

public boolean isWarnEnabled() {
  return isWarnEnabled(null);
}

代码示例来源:origin: org.jrebirth.af/core

/**
 * {@inheritDoc}
 */
@Override
public boolean isWarnEnabled(final Marker marker) {
  return getLogger().isWarnEnabled(marker);
}

代码示例来源:origin: org.jrebirth.af/core

/**
 * {@inheritDoc}
 */
@Override
public boolean isWarnEnabled() {
  return getLogger().isWarnEnabled();
}

代码示例来源:origin: tony19/logback-android

@Test
public void testIsWarnEnabledWithYesFilter() {
 addYesFilter();
 logger.setLevel(Level.ERROR);
 assertTrue(logger.isWarnEnabled());
}

代码示例来源:origin: tony19/logback-android

@Test
public void testIsWarnEnabledWithNoFilter() {
 addNoFilter();
 logger.setLevel(Level.DEBUG);
 assertFalse(logger.isWarnEnabled());
}

代码示例来源:origin: ch.qos.logback/log4j-bridge

public boolean isEnabledFor(Level l) {
 switch (l.level) {
 case Level.DEBUG_INT:
  return lbLogger.isDebugEnabled();
 case Level.INFO_INT:
  return lbLogger.isInfoEnabled();
 case Level.WARN_INT:
  return lbLogger.isWarnEnabled();
 case Level.ERROR_INT:
  return lbLogger.isErrorEnabled();
 case Level.FATAL_INT:
  return lbLogger.isErrorEnabled();
 }
 return false;
}

代码示例来源:origin: org.jrebirth.af/core

/**
 * {@inheritDoc}
 */
@Override
public void warn(final MessageItem messageItem, final Object... parameters) {
  if (getLogger().isWarnEnabled(messageItem.getMarker())) {
    getLogger().log(messageItem.getMarker(), FQCN, LocationAwareLogger.WARN_INT, messageItem.getText(parameters), null, null);
  }
}

代码示例来源:origin: org.jrebirth.af/core

/**
 * {@inheritDoc}
 */
@Override
public void warn(final MessageItem messageItem, final Throwable t, final Object... parameters) {
  if (getLogger().isWarnEnabled(messageItem.getMarker())) {
    getLogger().log(messageItem.getMarker(), FQCN, LocationAwareLogger.WARN_INT, messageItem.getText(parameters), null, t);
  }
}

相关文章