refactoring log create to function
Merge branches 'master' and 'master' of github.com:ministryofjustice/parliamentary-questions