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.

Source Files