log

package
v0.1.17000001017004 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

type NopLogger

type NopLogger struct{}

func (NopLogger) Debugf

func (n NopLogger) Debugf(string, ...interface{})

func (NopLogger) Errorf

func (n NopLogger) Errorf(string, ...interface{})

func (NopLogger) Fatalf

func (n NopLogger) Fatalf(string, ...interface{})

func (NopLogger) Infof

func (n NopLogger) Infof(string, ...interface{})

func (NopLogger) Warnf

func (n NopLogger) Warnf(string, ...interface{})

type ZeroLogger

type ZeroLogger struct {
	// contains filtered or unexported fields
}

func NewZeroLogger

func NewZeroLogger(level string) *ZeroLogger

func (*ZeroLogger) Debugf

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

func (*ZeroLogger) Errorf

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

func (*ZeroLogger) Fatalf

func (l *ZeroLogger) Fatalf(format string, args ...interface{})

func (*ZeroLogger) Infof

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

func (*ZeroLogger) Warnf

func (l *ZeroLogger) Warnf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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