log.info("Starting log publisher for file: " + filePath + ", thread: " + Thread.currentThread().getName());
scanner = new Scanner(process.getInputStream());
while (scanner.hasNextLine()) {
DataContext dataContext = new DataContext();
// set the relevant data
dataContext.setCorrelationData(null);
dataContext.setMetaData(new Object[] {memberId});
dataContext.setPayloadData(new Object[] {scanner.nextLine()});
// publish data
publish(dataContext);
}
}