Fixed #23653 -- Fixed Windows failure of a logging test added in refs #23569.