log

package
v2.1.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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

func Debugf

func Debugf(msg string, args ...interface{})

func Error

func Error(err error, msg string)

func Errorf

func Errorf(err error, msg string, args ...interface{})

func Info

func Info(msg string)

func Infof

func Infof(msg string, args ...interface{})

func SetLogger

func SetLogger(l Log)

func SetStdOutLogger

func SetStdOutLogger()

func SetZeroLogLogger

func SetZeroLogLogger(logger zerolog.Logger)

func Trace

func Trace(msg string)

func Tracef

func Tracef(msg string, args ...interface{})

Types

type Log

type Log interface {
	Trace(msg string)
	Tracef(msg string, args ...interface{})

	Debug(msg string)
	Debugf(msg string, args ...interface{})

	Info(msg string)
	Infof(msg string, args ...interface{})

	Error(err error, msg string)
	Errorf(err error, msg string, args ...interface{})
}

type StdOutLogger

type StdOutLogger struct {
}

func (StdOutLogger) Debug

func (s StdOutLogger) Debug(msg string)

func (StdOutLogger) Debugf

func (s StdOutLogger) Debugf(msg string, args ...interface{})

func (StdOutLogger) Error

func (s StdOutLogger) Error(err error, msg string)

func (StdOutLogger) Errorf

func (s StdOutLogger) Errorf(err error, msg string, args ...interface{})

func (StdOutLogger) Info

func (s StdOutLogger) Info(msg string)

func (StdOutLogger) Infof

func (s StdOutLogger) Infof(msg string, args ...interface{})

func (StdOutLogger) Trace

func (s StdOutLogger) Trace(msg string)

func (StdOutLogger) Tracef

func (s StdOutLogger) Tracef(msg string, args ...interface{})

type ZeroLogLogger

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

func (ZeroLogLogger) Debug

func (z ZeroLogLogger) Debug(msg string)

func (ZeroLogLogger) Debugf

func (z ZeroLogLogger) Debugf(msg string, args ...interface{})

func (ZeroLogLogger) Error

func (z ZeroLogLogger) Error(err error, msg string)

func (ZeroLogLogger) Errorf

func (z ZeroLogLogger) Errorf(err error, msg string, args ...interface{})

func (ZeroLogLogger) Info

func (z ZeroLogLogger) Info(msg string)

func (ZeroLogLogger) Infof

func (z ZeroLogLogger) Infof(msg string, args ...interface{})

func (ZeroLogLogger) Trace

func (z ZeroLogLogger) Trace(msg string)

func (ZeroLogLogger) Tracef

func (z ZeroLogLogger) Tracef(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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