logger

package
v1.48.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger()

Types

type TfLogger

type TfLogger struct {
	Name string
}

func (*TfLogger) Debugf

func (tfLogger *TfLogger) Debugf(ctx context.Context, format string, v ...any)

func (*TfLogger) Enabled

func (tfLogger *TfLogger) Enabled(_ context.Context, _ logger.Level) bool

This function is always enabled because TfLogger implements the Logger interface from Go SDK and there we check if the logging is enabled based on level (which default to Info). This however isn't possible here since tflog isn't enabled / disabled based on log level. Omitting is done internally through the `ShouldOmit` method that filters based on logger configurations.

func (*TfLogger) Errorf

func (tfLogger *TfLogger) Errorf(ctx context.Context, format string, v ...any)

func (*TfLogger) Infof

func (tfLogger *TfLogger) Infof(ctx context.Context, format string, v ...any)

func (*TfLogger) Tracef

func (tfLogger *TfLogger) Tracef(ctx context.Context, format string, v ...any)

func (*TfLogger) Warnf

func (tfLogger *TfLogger) Warnf(ctx context.Context, format string, v ...any)

Jump to

Keyboard shortcuts

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