Java 类org.apache.log4j.lf5.LogRecordFilter 实例源码

项目:cacheonix-core    文件:LogBrokerMonitor.java   
protected LogRecordFilter createNDCLogRecordFilter(String text) {
  _NDCTextFilter = text;
  LogRecordFilter result = new LogRecordFilter() {
    public boolean passes(LogRecord record) {
      String NDC = record.getNDC();
      CategoryPath path = new CategoryPath(record.getCategory());
      if (NDC == null || _NDCTextFilter == null) {
        return false;
      } else if (NDC.toLowerCase().indexOf(_NDCTextFilter.toLowerCase()) == -1) {
        return false;
      } else {
        return getMenuItem(record.getLevel()).isSelected() &&
            _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path);
      }
    }
  };

  return result;
}
项目:daq-eclipse    文件:LogBrokerMonitor.java   
protected LogRecordFilter createNDCLogRecordFilter(String text) {
  _NDCTextFilter = text;
  LogRecordFilter result = new LogRecordFilter() {
    public boolean passes(LogRecord record) {
      String NDC = record.getNDC();
      CategoryPath path = new CategoryPath(record.getCategory());
      if (NDC == null || _NDCTextFilter == null) {
        return false;
      } else if (NDC.toLowerCase().indexOf(_NDCTextFilter.toLowerCase()) == -1) {
        return false;
      } else {
        return getMenuItem(record.getLevel()).isSelected() &&
            _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path);
      }
    }
  };

  return result;
}
项目:nabs    文件:LogBrokerMonitor.java   
protected LogRecordFilter createNDCLogRecordFilter(String text) {
  _NDCTextFilter = text;
  LogRecordFilter result = new LogRecordFilter() {
    public boolean passes(LogRecord record) {
      String NDC = record.getNDC();
      CategoryPath path = new CategoryPath(record.getCategory());
      if (NDC == null || _NDCTextFilter == null) {
        return false;
      } else if (NDC.toLowerCase().indexOf(_NDCTextFilter.toLowerCase()) == -1) {
        return false;
      } else {
        return getMenuItem(record.getLevel()).isSelected() &&
            _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path);
      }
    }
  };

  return result;
}
项目:cacheonix-core    文件:LogBrokerMonitor.java   
protected LogRecordFilter createLogRecordFilter() {
  LogRecordFilter result = new LogRecordFilter() {
    public boolean passes(LogRecord record) {
      CategoryPath path = new CategoryPath(record.getCategory());
      return
          getMenuItem(record.getLevel()).isSelected() &&
          _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path);
    }
  };
  return result;
}
项目:daq-eclipse    文件:LogBrokerMonitor.java   
protected LogRecordFilter createLogRecordFilter() {
  LogRecordFilter result = new LogRecordFilter() {
    public boolean passes(LogRecord record) {
      CategoryPath path = new CategoryPath(record.getCategory());
      return
          getMenuItem(record.getLevel()).isSelected() &&
          _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path);
    }
  };
  return result;
}
项目:nabs    文件:LogBrokerMonitor.java   
protected LogRecordFilter createLogRecordFilter() {
  LogRecordFilter result = new LogRecordFilter() {
    public boolean passes(LogRecord record) {
      CategoryPath path = new CategoryPath(record.getCategory());
      return
          getMenuItem(record.getLevel()).isSelected() &&
          _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path);
    }
  };
  return result;
}
项目:cacheonix-core    文件:FilteredLogTableModel.java   
public void setLogRecordFilter(LogRecordFilter filter) {
  _filter = filter;
}
项目:cacheonix-core    文件:FilteredLogTableModel.java   
public LogRecordFilter getLogRecordFilter() {
  return _filter;
}
项目:daq-eclipse    文件:FilteredLogTableModel.java   
public void setLogRecordFilter(LogRecordFilter filter) {
  _filter = filter;
}
项目:daq-eclipse    文件:FilteredLogTableModel.java   
public LogRecordFilter getLogRecordFilter() {
  return _filter;
}
项目:nabs    文件:FilteredLogTableModel.java   
public void setLogRecordFilter(LogRecordFilter filter) {
  _filter = filter;
}
项目:nabs    文件:FilteredLogTableModel.java   
public LogRecordFilter getLogRecordFilter() {
  return _filter;
}