reteriving case details - logging to file.