func NewLogger(ctx context.Context, host *provider.HostClient, urn resource.URN) *DedupLogger {
	return &DedupLogger{
		messages: &TimeOrderedLogSet{},
		ctx:      ctx,
		host:     host,
		urn:      urn,
	}
}
NewLogger returns an initialized DedupLogger.
package logging
import (
	"context"
	"sync"
	"github.com/pulumi/pulumi/pkg/v3/resource/provider"
	"github.com/pulumi/pulumi/sdk/v3/go/common/diag"
	"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
)
type DedupLogger struct {
	messages *TimeOrderedLogSet
	index    int
	ctx      context.Context
	host     *provider.HostClient
	urn      resource.URN
	mux      sync.Mutex
}