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

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

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

Logger.callTurboFilters介绍

[英]Method that calls the attached TurboFilter objects based on the logger and the level. It is used by isYYYEnabled() methods. It returns the typical FilterReply values: ACCEPT, NEUTRAL or DENY.
[中]方法,该方法基于记录器和级别调用附加的TurboFilter对象。它由isYYYEnabled()方法使用。它返回典型的FilterReply值:ACCEPT、NEUTRAL或DENY。

代码示例

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

public boolean isInfoEnabled(Marker marker) {
  FilterReply decision = callTurboFilters(marker, Level.INFO);
  if (decision == FilterReply.NEUTRAL) {
    return effectiveLevelInt <= Level.INFO_INT;
  } else if (decision == FilterReply.DENY) {
    return false;
  } else if (decision == FilterReply.ACCEPT) {
    return true;
  } else {
    throw new IllegalStateException("Unknown FilterReply value: " + decision);
  }
}

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

public boolean isWarnEnabled(Marker marker) {
  FilterReply decision = callTurboFilters(marker, Level.WARN);
  if (decision == FilterReply.NEUTRAL) {
    return effectiveLevelInt <= Level.WARN_INT;
  } else if (decision == FilterReply.DENY) {
    return false;
  } else if (decision == FilterReply.ACCEPT) {
    return true;
  } else {
    throw new IllegalStateException("Unknown FilterReply value: " + decision);
  }
}

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

public boolean isDebugEnabled(Marker marker) {
  final FilterReply decision = callTurboFilters(marker, Level.DEBUG);
  if (decision == FilterReply.NEUTRAL) {
    return effectiveLevelInt <= Level.DEBUG_INT;
  } else if (decision == FilterReply.DENY) {
    return false;
  } else if (decision == FilterReply.ACCEPT) {
    return true;
  } else {
    throw new IllegalStateException("Unknown FilterReply value: " + decision);
  }
}

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

public boolean isTraceEnabled(Marker marker) {
  final FilterReply decision = callTurboFilters(marker, Level.TRACE);
  if (decision == FilterReply.NEUTRAL) {
    return effectiveLevelInt <= Level.TRACE_INT;
  } else if (decision == FilterReply.DENY) {
    return false;
  } else if (decision == FilterReply.ACCEPT) {
    return true;
  } else {
    throw new IllegalStateException("Unknown FilterReply value: " + decision);
  }
}

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

public boolean isErrorEnabled(Marker marker) {
  FilterReply decision = callTurboFilters(marker, Level.ERROR);
  if (decision == FilterReply.NEUTRAL) {
    return effectiveLevelInt <= Level.ERROR_INT;
  } else if (decision == FilterReply.DENY) {
    return false;
  } else if (decision == FilterReply.ACCEPT) {
    return true;
  } else {
    throw new IllegalStateException("Unknown FilterReply value: " + decision);
  }
}

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

public boolean isEnabledFor(Marker marker, Level level) {
  FilterReply decision = callTurboFilters(marker, level);
  if (decision == FilterReply.NEUTRAL) {
    return effectiveLevelInt <= level.levelInt;
  } else if (decision == FilterReply.DENY) {
    return false;
  } else if (decision == FilterReply.ACCEPT) {
    return true;
  } else {
    throw new IllegalStateException("Unknown FilterReply value: " + decision);
  }
}

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

public boolean isDebugEnabled(Marker marker) {
 final FilterReply decision = callTurboFilters(marker, Level.DEBUG);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.DEBUG_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isEnabledFor(Marker marker, Level level) {
 FilterReply decision = callTurboFilters(marker, level);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= level.levelInt;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isWarnEnabled(Marker marker) {
 FilterReply decision = callTurboFilters(marker, Level.WARN);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.WARN_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isErrorEnabled(Marker marker) {
 FilterReply decision = callTurboFilters(marker, Level.ERROR);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.ERROR_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isInfoEnabled(Marker marker) {
 FilterReply decision = callTurboFilters(marker, Level.INFO);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.INFO_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isTraceEnabled(Marker marker) {
 final FilterReply decision = callTurboFilters(marker, Level.TRACE);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.TRACE_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isDebugEnabled(Marker marker) {
 final FilterReply decision = callTurboFilters(marker, Level.DEBUG);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.DEBUG_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isWarnEnabled(Marker marker) {
 FilterReply decision = callTurboFilters(marker, Level.WARN);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.WARN_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isTraceEnabled(Marker marker) {
 final FilterReply decision = callTurboFilters(marker, Level.TRACE);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.TRACE_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isDebugEnabled(Marker marker) {
  final FilterReply decision = callTurboFilters(marker, Level.DEBUG);
  if (decision == FilterReply.NEUTRAL) {
    return effectiveLevelInt <= Level.DEBUG_INT;
  } else if (decision == FilterReply.DENY) {
    return false;
  } else if (decision == FilterReply.ACCEPT) {
    return true;
  } else {
    throw new IllegalStateException("Unknown FilterReply value: " + decision);
  }
}

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

public boolean isTraceEnabled(Marker marker) {
 final FilterReply decision = callTurboFilters(marker, Level.TRACE);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.TRACE_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isInfoEnabled(Marker marker) {
 FilterReply decision = callTurboFilters(marker, Level.INFO);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.INFO_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isEnabledFor(Marker marker, Level level) {
 FilterReply decision = callTurboFilters(marker, level);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= level.levelInt;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

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

public boolean isErrorEnabled(Marker marker) {
 FilterReply decision = callTurboFilters(marker, Level.ERROR);
 if (decision == FilterReply.NEUTRAL) {
  return effectiveLevelInt <= Level.ERROR_INT;
 } else if (decision == FilterReply.DENY) {
  return false;
 } else if (decision == FilterReply.ACCEPT) {
  return true;
 } else {
  throw new IllegalStateException("Unknown FilterReply value: " + decision);
 }
}

相关文章