Commit fe518e54 authored by R.W.Majeed's avatar R.W.Majeed
Browse files

sysout changed to logging

parent 19aaf491
...@@ -4,6 +4,7 @@ import java.io.IOException; ...@@ -4,6 +4,7 @@ import java.io.IOException;
import java.time.ZoneId; import java.time.ZoneId;
import java.util.Iterator; import java.util.Iterator;
import java.util.function.Consumer; import java.util.function.Consumer;
import java.util.logging.Logger;
import javax.annotation.PreDestroy; import javax.annotation.PreDestroy;
import javax.inject.Singleton; import javax.inject.Singleton;
...@@ -20,12 +21,13 @@ import de.sekmi.histream.impl.SimpleVisitExtension; ...@@ -20,12 +21,13 @@ import de.sekmi.histream.impl.SimpleVisitExtension;
@Singleton @Singleton
public class CDAImporterMockUp extends AbstractCDAImporter implements Consumer<Observation>, AutoCloseable{ public class CDAImporterMockUp extends AbstractCDAImporter implements Consumer<Observation>, AutoCloseable{
private static final Logger log = Logger.getLogger(CDAImporterMockUp.class.getName());
private ObservationFactory factory; private ObservationFactory factory;
private int insertCount; private int insertCount;
public CDAImporterMockUp() throws IOException{ public CDAImporterMockUp() throws IOException{
super(new ConcatAnonymizer()); super(new ConcatAnonymizer());
System.out.println("CONSTRUCT CDAImporterMockUp"); log.info("CONSTRUCT CDAImporterMockUp");
factory = new ObservationFactoryImpl(new SimplePatientExtension(), new SimpleVisitExtension()); factory = new ObservationFactoryImpl(new SimplePatientExtension(), new SimpleVisitExtension());
insertCount = 0; insertCount = 0;
} }
...@@ -33,7 +35,7 @@ public class CDAImporterMockUp extends AbstractCDAImporter implements Consumer<O ...@@ -33,7 +35,7 @@ public class CDAImporterMockUp extends AbstractCDAImporter implements Consumer<O
@PreDestroy @PreDestroy
@Override @Override
public void close() { public void close() {
System.out.println("CLOSE CDAImporterMockUp (insertCount="+insertCount+")"); log.info("CLOSE CDAImporterMockUp (insertCount="+insertCount+")");
} }
@Override @Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment