logging

package
v1.56.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = struct {
	Info *log.Logger
	Warn *log.Logger
}{
	Info: createDebugLogger("export.log"),
	Warn: createDebugLogger("warnings.log"),
}
View Source
var File = log.New(odl, "", log.LstdFlags)
View Source
var Logger = hclog.New(&hclog.LoggerOptions{
	IncludeLocation: false,
	DisableTime:     true,
})

Functions

func Enable

Enable redirects logging into a an output file

func EnableCustomizeDiff

func EnableCustomizeDiff(fn func(context.Context, *schema.ResourceDiff, any) error) func(context.Context, *schema.ResourceDiff, any) error

EnableCustomizeDiff redirects logging into a an output file

func EnableDS added in v1.29.0

func EnableDS(fn func(d *schema.ResourceData, m any) error) func(*schema.ResourceData, any) error

func EnableSchemaDiff

func EnableSchemaDiff(fn func(k, old, new string, d *schema.ResourceData) bool) func(k, old, new string, d *schema.ResourceData) bool

EnableSchemaDiff redirects logging into a an output file

func EnableSchemaSetFunc

func EnableSchemaSetFunc(fn func(v any) int) func(v any) int

func SetOutput

func SetOutput()

Enable redirects logging into a an output file

Types

This section is empty.

Jump to

Keyboard shortcuts

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