public String toString(final String indent) {
        final StringBuilder sb = new StringBuilder();
        sb.append(indent);
        sb.append("TaskId: ");
        sb.append(id);
        sb.append("\n");

        // print topology
        if (topology != null) {
            sb.append(indent).append(topology.toString(indent + "\t"));
        }

        return sb.toString();
    }
Produces a string representation containing useful information about a Task starting with the given indent.
This is useful in debugging scenarios.

@return A string representation of the Task instance.
streams/src/main/java/org/apache/kafka/streams/processor/internals/StandbyTask.java