juju: github.com/juju/juju/apiserver/facades/agent/logger Index | Files

package logger

import "github.com/juju/juju/apiserver/facades/agent/logger"

Index

Package Files

logger.go

type Logger Uses

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 Uses

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 Uses

func NewLoggerAPI(ctx facade.Context) (*LoggerAPI, error)

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

func (*LoggerAPI) LoggingConfig Uses

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

LoggingConfig reports the logging configuration for the agents specified.

func (*LoggerAPI) WatchLoggingConfig Uses

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 infrastructure makes watching parts of the config non-trivial, so currently any change to the config will cause the watcher to notify the client.

Package logger imports 7 packages (graph) and is imported by 3 packages. Updated 2019-09-01. Refresh now. Tools for package owners.