logger

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug - log debug using custom logger

func Error

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

Error - log error using custom logger

func Info

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

Info - log info using custom logger

func SetLogger

func SetLogger(customLogger Logger)

SetLogger - set custom logger

Types

type ConsoleLogger added in v1.11.0

type ConsoleLogger struct{}

ConsoleLogger - placeholder for default logger

func (*ConsoleLogger) Debug added in v1.11.0

func (dl *ConsoleLogger) Debug(_ context.Context, format string, args ...interface{})

Debug - log debug using default logger

func (*ConsoleLogger) Error added in v1.11.0

func (dl *ConsoleLogger) Error(_ context.Context, format string, args ...interface{})

Error - log error using default logger

func (*ConsoleLogger) Info added in v1.11.0

func (dl *ConsoleLogger) Info(_ context.Context, format string, args ...interface{})

Info - log info using default logger

type Logger

type Logger interface {
	Info(ctx context.Context, format string, args ...interface{})
	Debug(ctx context.Context, format string, args ...interface{})
	Error(ctx context.Context, format string, args ...interface{})
}

Logger logging interface for gonvme

Jump to

Keyboard shortcuts

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