public static LoggingContext forOffsets(ConnectorTaskId id) {
        Objects.requireNonNull(id);
        LoggingContext context = new LoggingContext();
        MDC.put(CONNECTOR_CONTEXT, prefixFor(id.connector(), Scope.OFFSETS, id.task()));
        return context;
    }
Modify the current {@link MDC} logging context to set the {@link #CONNECTOR_CONTEXT connector context} to include the
connector name and task number using the supplied {@link ConnectorTaskId}, and to set the scope to {@link Scope#OFFSETS}.

@param id the connector task ID; may not be null
connect/runtime/src/main/java/org/apache/kafka/connect/util/LoggingContext.java