Correct error message when can not find logger instance