logging

package
v0.0.0-...-d403925 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Loggers *Log
	Data    log.Fields
	Time    time.Time
	Level   log.Level
	Caller  *runtime.Frame
	Message string
	Buffer  *bytes.Buffer
	Context context.Context
	// contains filtered or unexported fields
}

func (*Entry) Debug

func (entry *Entry) Debug(args ...interface{})

func (*Entry) Debugf

func (entry *Entry) Debugf(format string, args ...interface{})

func (*Entry) Error

func (entry *Entry) Error(args ...interface{})

func (*Entry) Errorf

func (entry *Entry) Errorf(format string, args ...interface{})

func (*Entry) Fatal

func (entry *Entry) Fatal(args ...interface{})

func (*Entry) Fatalf

func (entry *Entry) Fatalf(format string, args ...interface{})

func (*Entry) FromLogrus

func (entry *Entry) FromLogrus(logrus *log.Entry, loggers Log)

func (*Entry) Info

func (entry *Entry) Info(args ...interface{})

func (*Entry) Infof

func (entry *Entry) Infof(format string, args ...interface{})

func (*Entry) Warn

func (entry *Entry) Warn(args ...interface{})

func (*Entry) Warnf

func (entry *Entry) Warnf(format string, args ...interface{})

type Log

type Log struct {
	LastResort *log.Logger
	// contains filtered or unexported fields
}

func (Log) Debug

func (logger Log) Debug(args ...interface{})

func (Log) Debugf

func (logger Log) Debugf(format string, args ...interface{})

func (Log) Error

func (logger Log) Error(args ...interface{})

func (Log) Errorf

func (logger Log) Errorf(format string, args ...interface{})

func (Log) Fatal

func (logger Log) Fatal(args ...interface{})

func (Log) Fatalf

func (logger Log) Fatalf(format string, args ...interface{})

func (*Log) FromConfig

func (logger *Log) FromConfig(conf *viper.Viper)

func (Log) Info

func (logger Log) Info(args ...interface{})

func (Log) Infof

func (logger Log) Infof(format string, args ...interface{})

func (Log) Panic

func (logger Log) Panic(args ...interface{})

func (Log) Panicf

func (logger Log) Panicf(format string, args ...interface{})

func (Log) Printf

func (logger Log) Printf(format string, args ...interface{})

func (Log) Println

func (logger Log) Println(args ...interface{})

func (*Log) SetLevel

func (logger *Log) SetLevel(level log.Level)

func (Log) Warn

func (logger Log) Warn(args ...interface{})

func (Log) Warnf

func (logger Log) Warnf(format string, args ...interface{})

func (Log) WithFields

func (logger Log) WithFields(fields log.Fields) *Entry

Jump to

Keyboard shortcuts

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