default void info(final Supplier<String> messageSupplier, final Logger logger) {

        info(messageSupplier);

        if (logger != null && logger.isDebugEnabled() && messageSupplier != null) {
            logger.debug("TaskId: {}, info: {}",
                    NullSafe.get(getTaskId(), TaskId::getId),
                    messageSupplier.get());
        }
    }
Set the messageSupplier on the taskContext and if logger has debug enabled
then log the message as well.
stroom-task/stroom-task-api/src/main/java/stroom/task/api/TaskContext.java