Also encode log with names tuples