pub fn extract_log_index(log: &Log) -> Result<u32>
Extracts the log index from a log entry
Returns an error if the log index is not present in the log.