Refactored addLogEntry so it will not conflict with JobStatus and added unit tests