logging

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
}

Logger is the adapter interface that needs to be implemented, if the library should internally print logs.

This allows to hook up your logger of choice.

type VoidLogger

type VoidLogger struct{}

VoidLogger is an empty implementation of the Logger interface, which doesn't actually process any logs. It may be used as a dummy implementation, if no logs should be visible.

func (*VoidLogger) Debug

func (l *VoidLogger) Debug(args ...interface{})

func (*VoidLogger) Debugf

func (l *VoidLogger) Debugf(format string, args ...interface{})

func (*VoidLogger) Error

func (l *VoidLogger) Error(args ...interface{})

func (*VoidLogger) Errorf

func (l *VoidLogger) Errorf(format string, args ...interface{})

func (*VoidLogger) Info

func (l *VoidLogger) Info(args ...interface{})

func (*VoidLogger) Infof

func (l *VoidLogger) Infof(format string, args ...interface{})

Jump to

Keyboard shortcuts

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