logs

package
v1.999.10 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilLogger = errors.New("nil logger")

ErrNilLogger signals that a nil logger has been provided

View Source
var ErrNilMarshalizer = errors.New("nil marshalizer")

ErrNilMarshalizer signals that a nil marshalizer has been provided

View Source
var ErrNilWsConn = errors.New("nil web socket connection")

ErrNilWsConn signals that a nil web socket connection has been provided

View Source
var ErrWriterBusy = errors.New("writer is busy")

ErrWriterBusy signals that the data queue inside the writer is full

View Source
var ErrWriterClosed = errors.New("writer is closed")

ErrWriterClosed signals that the current writer is closed and no longer accepts writes

Functions

func NewLogSender

func NewLogSender(marshalizer marshal.Marshalizer, conn wsConn, log logger.Logger) (*logSender, error)

NewLogSender returns a new component that is able to communicate with the log viewer application. After the correct handshake it will send all logs that come through the logger subsystem

func NewLogWriter

func NewLogWriter() *logWriter

NewLogWriter creates a new chan-based

Types

This section is empty.

Jump to

Keyboard shortcuts

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