Write a repository method and tests for creating domain log entries #domainwatchman