switch individual logs into for loop to log names and index number