logging

package
v2.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 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 ...interface{})

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 ...interface{})

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 ...interface{})

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 ...interface{})

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 ...interface{})

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