logger

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ToLog

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

ToLog prints the output to a log sinks.

func NewToLog

func NewToLog(ctx context.Context, vertexInstance *dfv1.VertexInstance) (*ToLog, error)

NewToLog returns ToLog type.

func (*ToLog) Close

func (t *ToLog) Close() error

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) 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