log

package
v3.93.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log interface {
	Debug(msg string)
	Info(msg string)
	Warn(msg string)
	Error(msg string)
}

The set of logs available to show to the user

type Logger

type Logger interface {
	Log

	// Convert to sending ephemeral status logs to the user.
	Status() Log
}

Send logs or status logs to the user.

Logged messages are pre-associated with the resource they are called from.

func GetLogger

func GetLogger(ctx context.Context) Logger

Get access to the Logger associated with this context.

Jump to

Keyboard shortcuts

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