logger

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 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(vertex *dfv1.Vertex, fromBuffer isb.BufferReader, fetchWatermark fetch.Fetcher, publishWatermark map[string]publish.Publisher, opts ...Option) (*ToLog, error)

NewToLog returns ToLog type.

func (*ToLog) Close

func (br *ToLog) Close() error

func (*ToLog) ForceStop

func (s *ToLog) ForceStop()

ForceStop stops sinking

func (*ToLog) GetName

func (s *ToLog) GetName() string

GetName returns the name.

func (*ToLog) IsFull

func (s *ToLog) IsFull() bool

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

func (*ToLog) Start

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

Start starts sinking to Log.

func (*ToLog) Stop

func (s *ToLog) Stop()

Stop stops sinking

func (*ToLog) Write

func (s *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