writersub

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawWriterSub

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

RawWriterSub is a bus subscriber that can print formatted logs to a writer.

func NewRaw

func NewRaw(w io.Writer, json bool) *RawWriterSub

New creates a new WriterSub.

func (*RawWriterSub) Errors

func (rws *RawWriterSub) Errors() []error

Errors returns any errors that occurred while writing to the writer.

func (*RawWriterSub) Write

func (rws *RawWriterSub) Write(delta *logstream.Delta)

Write writes the given delta to the writer, if it is a formatted log delta.

type WriterSub

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

WriterSub is a bus subscriber that can print formatted logs to a writer.

func New

func New(w io.Writer, targetIDFilter string) *WriterSub

New creates a new WriterSub.

func (*WriterSub) Errors

func (ws *WriterSub) Errors() []error

Errors returns any errors that occurred while writing to the writer.

func (*WriterSub) Write

func (ws *WriterSub) Write(delta *logstream.Delta)

Write writes the given delta to the writer, if it is a formatted log delta.

Jump to

Keyboard shortcuts

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