Added method to get the metadata for a log's rotation.