remotelogger

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(level logging.Level, remoteConfigURL string, loggerFetchInterval time.Duration) logging.Logger

New creates a new RemoteLogger instance with the provided level, remote configuration URL, and level fetch interval. The remote configuration URL is expected to be a JSON endpoint that returns the desired log level for the service. The level fetch interval determines how often the logger checks for updates to the remote configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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