logging

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("stream: not found")

ErrNotFound is returned when the log does not exist.

Functions

This section is empty.

Types

type Log

type Log interface {
	// Open opens the log.
	Open(c context.Context, stepID int64) error

	// Write writes the entry to the log.
	Write(c context.Context, stepID int64, entries []*model.LogEntry) error

	// Tail tails the log.
	Tail(c context.Context, stepID int64, handler LogChan) error

	// Close closes the log.
	Close(c context.Context, stepID int64) error
}

Log defines a log multiplexer.

func New

func New() Log

New returns a new logger.

type LogChan added in v2.7.3

type LogChan chan []*model.LogEntry

LogChan defines a channel type for receiving ordered batches of log entries.

Jump to

Keyboard shortcuts

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