Added the base plumbing for using logger to log errors.