added trace level to log message formatting

fixes #4123