logger

package
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*ToLog) error

func WithLogger

func WithLogger(log *zap.SugaredLogger) Option

type ToLog

type ToLog struct {
	// contains filtered or unexported fields
}

ToLog prints the output to a log sinks.

func NewToLog

func NewToLog(vertexInstance *dfv1.VertexInstance,
	fromBuffer isb.BufferReader,
	fetchWatermark fetch.Fetcher,
	publishWatermark publish.Publisher,
	idleManager wmb.IdleManager,
	opts ...Option) (*ToLog, error)

NewToLog returns ToLog type.

func (*ToLog) Close

func (t *ToLog) Close() error

func (*ToLog) ForceStop

func (t *ToLog) ForceStop()

ForceStop stops sinking

func (*ToLog) GetName

func (t *ToLog) GetName() string

GetName returns the name.

func (*ToLog) GetPartitionIdx added in v0.9.0

func (t *ToLog) GetPartitionIdx() int32

GetPartitionIdx returns the partition index. for sink it is always 0.

func (*ToLog) IsFull

func (t *ToLog) IsFull() bool

IsFull returns whether logging is full, which is never true.

func (*ToLog) Start

func (t *ToLog) Start() <-chan struct{}

Start starts sinking to Log.

func (*ToLog) Stop

func (t *ToLog) Stop()

Stop stops sinking

func (*ToLog) Write

func (t *ToLog) Write(_ context.Context, messages []isb.Message) ([]isb.Offset, []error)

Write writes to the log.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL