Checks if a contract emits a log