change log and error message formatting