log

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	// With creates a new logger which will include the provided key/value in each log message
	With(key string, value interface{}) Logger
	// WithValues creates a new logger which will include all the provided key/value(s) in each log message
	WithValues(values map[string]interface{}) Logger
	Trace(msg string, additionalFields ...map[string]interface{})
	Debug(msg string, additionalFields ...map[string]interface{})
	Info(msg string, additionalFields ...map[string]interface{})
	Warn(msg string, additionalFields ...map[string]interface{})
	Error(msg string, additionalFields ...map[string]interface{})
}

Logger provides an interface to the terraform-plugin-log to make it easier to use.

func NewLogger

func NewLogger(ctx context.Context) Logger

func NewNoopLogger

func NewNoopLogger() Logger

Jump to

Keyboard shortcuts

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