logsender

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 6 Imported by: 0

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