logging

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLogger

func ClearLogger()

ClearLogger clears the logger returning to a no-op logger.

func SetLogger

func SetLogger(l Logger)

SetLogger sets the logger to the provided logger.

Types

type ConsoleLogger

type ConsoleLogger struct{}

ConsoleLogger is a logger that logs to the console. This is intended for use in debugging the plugin itself.

func (ConsoleLogger) Error

func (c ConsoleLogger) Error(v ...interface{})

Error logs a message to the console.

func (ConsoleLogger) Errorf

func (c ConsoleLogger) Errorf(format string, v ...interface{})

Errorf logs a formatted message to the console.

func (ConsoleLogger) Infof

func (c ConsoleLogger) Infof(format string, v ...interface{})

Infof logs a formatted message to the console.

type Logger

type Logger interface {
	Error(v ...interface{})
	Errorf(format string, v ...interface{})
	Infof(format string, v ...interface{})
}

Logger is the interface used for logging internal to the observability plugin.

func GetLogger

func GetLogger() Logger

GetLogger returns the current logger instance.

Jump to

Keyboard shortcuts

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