logger

package
v0.0.0-...-052d8fd Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

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 (*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 infrastructure 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