[1.7.x] Added link to LogRecord attributes in logging.txt

Backport of c5b4145fca from master
[1.7.x] Fixed #23403 -- Fixed crash in contrib.sitemaps if lastmod returned a date rather than datetime.

Thanks igorcc for the report and Preston Timmons for review.

Backport of 66580fe97c from master