check_tracelog function

Check if a tracelog is valid.