コード例 #1
0
ファイル: BaseCounter.java プロジェクト: asgeirf/okapi
  protected static void logMessage(
      Class<? extends BaseCounter> classRef, Level level, String text) {

    if (logger == null) logger = Logger.getLogger(ClassUtil.getClassName(classRef));

    if (logger != null) logger.log(level, text);
  }
コード例 #2
0
 @Test
 public void testEvents() throws URISyntaxException, MalformedURLException {
   new XPipeline(
           "Test pipeline for CodeSimplifierStep",
           new XBatch(
               new XBatchItem(
                   this.getClass().getResource("/test.xml").toURI(), "UTF-8", LocaleId.ENGLISH)),
           new RawDocumentToFilterEventsStep(new XMLFilter()),
           new XPipelineStep(
               new SegmentationStep(),
               new XParameter(
                   "sourceSrxPath", ClassUtil.getResourcePath(getClass(), "/Segmentation.srx"))),
           new EventLogger())
       .execute();
 }