Add CsvLog class to encapsulate metadata file access.