logsender

package
v0.0.0-...-298751d Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 5 Imported by: 4

Documentation

Overview

Package logsender implements the API for storing log messages on the API server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API provides access to the LogSender API.

func NewAPI

func NewAPI(connector base.StreamConnector) *API

NewAPI creates a new client-side logsender API.

func (*API) LogWriter

func (api *API) LogWriter() (LogWriter, error)

LogWriter returns a new log writer interface value which must be closed when finished with.

type LogWriter

type LogWriter interface {
	// WriteLog writes the given log record.
	WriteLog(*params.LogRecord) error

	io.Closer
}

LogWriter is the interface that allows sending log messages to the server for storage.

Jump to

Keyboard shortcuts

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