logger

package
v0.0.0-...-efc9231 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

Functions

This section is empty.

Types

type Client

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

Client provides access to a logger facade client.

func NewClient

func NewClient(caller base.APICaller, options ...Option) *Client

NewClient returns a version of the logger client that provides functionality required by the logger worker.

func (*Client) LoggingConfig

func (c *Client) LoggingConfig(ctx context.Context, agentTag names.Tag) (string, error)

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

func (*Client) WatchLoggingConfig

func (c *Client) WatchLoggingConfig(ctx context.Context, 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.

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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