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

package logger

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


Package Files


type State Uses

type State struct {
    // contains filtered or unexported fields

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

func NewState Uses

func NewState(caller base.APICaller) *State

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

func (*State) LoggingConfig Uses

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

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

func (*State) WatchLoggingConfig Uses

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.

Package logger imports 6 packages (graph) and is imported by 55 packages. Updated 2020-06-13. Refresh now. Tools for package owners.