logging

package
v2.60.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var L = Logger{}

L is the global Logger singleton

Functions

This section is empty.

Types

type Logger

type Logger struct{}

Logger is the implementation of the SDK Logger interface for this terraform plugin.

cf. https://godoc.org/github.com/scaleway/scaleway-sdk-go/logger#Logger

func (Logger) Debugf

func (l Logger) Debugf(format string, args ...any)

Debugf logs to the DEBUG log. Arguments are handled in the manner of fmt.Printf.

func (Logger) Errorf

func (l Logger) Errorf(format string, args ...any)

Errorf logs to the ERROR log. Arguments are handled in the manner of fmt.Printf.

func (Logger) Infof

func (l Logger) Infof(format string, args ...any)

Infof logs to the INFO log. Arguments are handled in the manner of fmt.Printf.

func (Logger) Printf

func (l Logger) Printf(format string, args ...any)

Printf logs to the DEBUG log. Arguments are handled in the manner of fmt.Printf.

func (Logger) ShouldLog

func (l Logger) ShouldLog(_ logger.LogLevel) bool

ShouldLog allow the SDK to log only in DEBUG or TRACE levels.

func (Logger) Warningf

func (l Logger) Warningf(format string, args ...any)

Warningf logs to the WARNING log. Arguments are handled in the manner of fmt.Printf.

Jump to

Keyboard shortcuts

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