Add LogEntryRepository and its test.