logger

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Debugf(string, ...interface{})
	Errorf(string, ...interface{})
	Info(...interface{})
	Infof(string, ...interface{})
	Warning(...interface{})
	Warningf(string, ...interface{})
	Tracef(string, ...interface{})
}

Interface defines the API for the logger package

func New

func New() Interface

New returns a new logger

type NullLogger

type NullLogger struct{}

NullLogger is a logger that does nothing

func (*NullLogger) Debugf

func (l *NullLogger) Debugf(string, ...interface{})

Debugf is a no-op for the null logger

func (*NullLogger) Errorf

func (l *NullLogger) Errorf(string, ...interface{})

Errorf is a no-op for the null logger

func (*NullLogger) Info

func (l *NullLogger) Info(...interface{})

Info is a no-op for the null logger

func (*NullLogger) Infof

func (l *NullLogger) Infof(string, ...interface{})

Infof is a no-op for the null logger

func (*NullLogger) Tracef added in v1.16.0

func (l *NullLogger) Tracef(string, ...interface{})

Tracef is a no-op for the null logger

func (*NullLogger) Warning

func (l *NullLogger) Warning(...interface{})

Warning is a no-op for the null logger

func (*NullLogger) Warningf

func (l *NullLogger) Warningf(string, ...interface{})

Warningf is a no-op for the null logger

Jump to

Keyboard shortcuts

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