logger

package
v0.0.0-...-732aecd Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2014 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	WatchLoggingConfig(args params.Entities) params.NotifyWatchResults
	LoggingConfig(args params.Entities) params.StringResults
}

Logger defines the methods on the logger API end point. Unfortunately, the api infrastructure doesn't allow interfaces to be used as an actual endpoint because our rpc mechanism panics. However, I still feel that this provides a useful documentation purpose.

type LoggerAPI

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

LoggerAPI implements the Logger interface and is the concrete implementation of the api end point.

func NewLoggerAPI

func NewLoggerAPI(
	st *state.State,
	resources *common.Resources,
	authorizer common.Authorizer,
) (*LoggerAPI, error)

NewLoggerAPI creates a new server-side logger API end point.

func (*LoggerAPI) LoggingConfig

func (api *LoggerAPI) LoggingConfig(arg params.Entities) params.StringResults

LoggingConfig reports the logging configuration for the agents specified.

func (*LoggerAPI) WatchLoggingConfig

func (api *LoggerAPI) WatchLoggingConfig(arg params.Entities) params.NotifyWatchResults

WatchLoggingConfig starts a watcher to track changes to the logging config for the agents specified.. Unfortunately the current infrastruture makes watching parts of the config non-trivial, so currently any change to the config will cause the watcher to notify the client.

Jump to

Keyboard shortcuts

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