move creation of log entries to the store