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

package logsender

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

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

Index

Package Files

logsender.go

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

    io.Closer
}

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

Package logsender imports 6 packages (graph) and is imported by 24 packages. Updated 2017-05-06. Refresh now. Tools for package owners.