juju: github.com/wallyworld/juju/api/logsender Index | Files

package logsender

import "github.com/wallyworld/juju/api/logsender"

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


Package Files


type API Uses

type API struct {
    // contains filtered or unexported fields

API provides access to the LogSender API.

func NewAPI Uses

func NewAPI(connector base.StreamConnector) *API

NewAPI creates a new client-side logsender API.

func (*API) LogWriter Uses

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

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

type LogWriter Uses

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


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

Package logsender imports 6 packages (graph). Updated 2017-03-27. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).