logger

package
v4.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Fatal(format ...interface{})
	Fatalf(format string, args ...interface{})
	Fatalln(args ...interface{})

	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Debugln(args ...interface{})

	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Errorln(args ...interface{})

	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Infoln(args ...interface{})

	Warn(args ...interface{})
	Warnf(format string, args ...interface{})
	Warnln(args ...interface{})

	Panic(args ...interface{})
	Panicf(format string, args ...interface{})
	Panicln(args ...interface{})

	WithFields(fields map[string]interface{}) Logger
	WithField(key string, value interface{}) Logger
	WithError(err error) Logger
}

Logger interface for loggers

type NullLogger

type NullLogger struct{}

NullLogger ...

func (*NullLogger) Debug

func (n *NullLogger) Debug(args ...interface{})

Debug ...

func (*NullLogger) Debugf

func (n *NullLogger) Debugf(format string, args ...interface{})

Debugf ...

func (*NullLogger) Debugln

func (n *NullLogger) Debugln(args ...interface{})

Debugln ...

func (*NullLogger) Error

func (n *NullLogger) Error(args ...interface{})

Error ...

func (*NullLogger) Errorf

func (n *NullLogger) Errorf(format string, args ...interface{})

Errorf ...

func (*NullLogger) Errorln

func (n *NullLogger) Errorln(args ...interface{})

Errorln ...

func (*NullLogger) Fatal

func (n *NullLogger) Fatal(format ...interface{})

Fatal ...

func (*NullLogger) Fatalf

func (n *NullLogger) Fatalf(format string, args ...interface{})

Fatalf ...

func (*NullLogger) Fatalln

func (n *NullLogger) Fatalln(args ...interface{})

Fatalln ...

func (*NullLogger) Info

func (n *NullLogger) Info(args ...interface{})

Info ...

func (*NullLogger) Infof

func (n *NullLogger) Infof(format string, args ...interface{})

Infof ...

func (*NullLogger) Infoln

func (n *NullLogger) Infoln(args ...interface{})

Infoln ...

func (*NullLogger) Panic

func (n *NullLogger) Panic(args ...interface{})

Panic ...

func (*NullLogger) Panicf

func (n *NullLogger) Panicf(format string, args ...interface{})

Panicf ...

func (*NullLogger) Panicln

func (n *NullLogger) Panicln(args ...interface{})

Panicln ...

func (*NullLogger) Warn

func (n *NullLogger) Warn(args ...interface{})

Warn ...

func (*NullLogger) Warnf

func (n *NullLogger) Warnf(format string, args ...interface{})

Warnf ...

func (*NullLogger) Warnln

func (n *NullLogger) Warnln(args ...interface{})

Warnln ...

func (*NullLogger) WithError

func (n *NullLogger) WithError(err error) Logger

WithError ...

func (*NullLogger) WithField

func (n *NullLogger) WithField(key string, value interface{}) Logger

WithField ...

func (*NullLogger) WithFields

func (n *NullLogger) WithFields(fields map[string]interface{}) Logger

WithFields ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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