Convert size_t to uint32_t for log records.

refs #1359