示例#1
0
 public String listIncludes() {
   StringBuilder sb = new StringBuilder();
   for (SpyMatcher sm : tracer.getMatcherSet().getMatchers()) {
     sb.append(sm.hasFlags(SpyMatcher.EXCLUDE_MATCH) ? "excl: " : "incl: ");
     sb.append(sm);
     sb.append("\n");
   }
   return sb.toString();
 }
示例#2
0
 /**
  * Adds matching method to tracer.
  *
  * @param matchers spy matcher objects (created using spy.byXxxx() functions)
  */
 public void include(String... matchers) {
   for (String matcher : matchers) {
     log.info(ZorkaLogger.ZAG_CONFIG, "Tracer include: " + matcher);
     tracer.include(SpyMatcher.fromString(matcher.toString()));
   }
 }