log

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(ctx context.Context, format string, args ...interface{})

Debugf logs a formatted debug message.

func Errorf

func Errorf(ctx context.Context, format string, args ...interface{})

Errorf logs a formatted error message.

func Infof

func Infof(ctx context.Context, format string, args ...interface{})

Infof logs a formatted informational message.

func Set

func Set(l Logger)

Set the logger used by NRI.

func Warnf

func Warnf(ctx context.Context, format string, args ...interface{})

Warnf logs a formatted warning message.

Types

type Logger

type Logger interface {
	Debugf(ctx context.Context, format string, args ...interface{})
	Infof(ctx context.Context, format string, args ...interface{})
	Warnf(ctx context.Context, format string, args ...interface{})
	Errorf(ctx context.Context, format string, args ...interface{})
}

Logger is the interface NRI uses for logging.

func Get

func Get() Logger

Get the logger used by NRI.

Jump to

Keyboard shortcuts

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