@Test public void testUseLogObserver() { LogObserver logObserver = new LogObserver(new StringLog()); Id id = new DefaultRegistry().createId("aa"); LookoutMeasurement measurement = new LookoutMeasurement(new Date(), id); measurement.addTag("k", "v"); measurement.put("v", 2); List<LookoutMeasurement> measurements = new ArrayList<LookoutMeasurement>(); measurements.add(measurement); logObserver.update(measurements, null); Assert.assertTrue(str.contains("\"tags\":{\"k\":\"v\"}")); }
@Override public void update(List<LookoutMeasurement> measures, Map<String, String> metadata) { logger.info(measures.toString()); }
LogObserver implements MetricObserver<LookoutMeasurement> { @Override public void update(List<LookoutMeasurement> measures, Map<String, String> metadata) { logger.info(measures.toString()); } }
LogObserver implements MetricObserver<LookoutMeasurement> { @Override public void update(List<LookoutMeasurement> measures, Map<String, String> metadata) { logger.info(measures.toString()); } LogObserver();  LogObserver(Logger logger); }
LogObserver implements MetricObserver<LookoutMeasurement> { @Override public void update(List<LookoutMeasurement> measures, Map<String, String> metadata) { logger.info(measures.toString()); } LogObserver();  LogObserver(Logger logger); @Override boolean isEnable(); @Override void update(List<LookoutMeasurement> measures, Map<String, String> metadata); }
LogObserver implements MetricObserver<LookoutMeasurement> { @Override public void update(List<LookoutMeasurement> measures, Map<String, String> metadata) { logger.info(measures.toString()); } LogObserver();  LogObserver(Logger logger); @Override boolean isEnable(); @Override void update(List<LookoutMeasurement> measures, Map<String, String> metadata);  }