logger

package
v0.0.0-...-be26699 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 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 State

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

State provides access to an logger worker's view of the state.

func NewState

func NewState(caller base.APICaller) *State

NewState returns a version of the state that provides functionality required by the logger worker.

func (*State) LoggingConfig

func (st *State) LoggingConfig(agentTag names.Tag) (string, error)

LoggingConfig returns the loggo configuration string for the agent specified by agentTag.

func (*State) WatchLoggingConfig

func (st *State) WatchLoggingConfig(agentTag names.Tag) (watcher.NotifyWatcher, error)

WatchLoggingConfig returns a notify watcher that looks for changes in the logging-config for the agent specified by agentTag.

Jump to

Keyboard shortcuts

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