log

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPanic

func DPanic(args ...interface{})

func DPanicf

func DPanicf(template string, args ...interface{})

func DPanicln

func DPanicln(args ...interface{})

func DPanicw

func DPanicw(msg string, kv KeysAndValues)

func Debug

func Debug(args ...interface{})

func Debugf

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

func Debugln

func Debugln(args ...interface{})

func Debugw

func Debugw(msg string, kv KeysAndValues)

func Error

func Error(args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Errorln

func Errorln(args ...interface{})

func Errorw

func Errorw(msg string, kv KeysAndValues)

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(template string, args ...interface{})

func Fatalln

func Fatalln(args ...interface{})

func Fatalw

func Fatalw(msg string, kv KeysAndValues)

func Info

func Info(args ...interface{})

func Infof

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

func Infoln

func Infoln(args ...interface{})

func Infow

func Infow(msg string, kv KeysAndValues)

func Panic

func Panic(args ...interface{})

func Panicf

func Panicf(template string, args ...interface{})

func Panicln

func Panicln(args ...interface{})

func Panicw

func Panicw(msg string, kv KeysAndValues)

func Print

func Print(args ...interface{})

func Printf

func Printf(template string, args ...interface{})

func Println

func Println(args ...interface{})

func Printw

func Printw(msg string, kv KeysAndValues)

func Setup

func Setup(cfg *LogConfig)

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(template string, args ...interface{})

func Warnln

func Warnln(args ...interface{})

func Warnw

func Warnw(msg string, kv KeysAndValues)

Types

type KeysAndValues

type KeysAndValues []interface{}

type LogConfig

type LogConfig struct {
	Level         string
	Files         []string
	Underlying    string
	WriteToStdout bool
	ZapConfig     struct {
		MaxSize        int
		MaxBackups     int
		MaxAge         int
		LocalTime      bool
		Compress       bool
		JsonFormat     bool
		BtEnabled      bool
		BtLevel        string
		FieldSeparator string
	}
}

type Logger

type Logger interface {
	Debug(args ...interface{})
	Debugf(template string, args ...interface{})
	Debugln(args ...interface{})
	Debugw(msg string, kv KeysAndValues)
	Info(args ...interface{})
	Infof(template string, args ...interface{})
	Infoln(args ...interface{})
	Infow(msg string, kv KeysAndValues)
	Warn(args ...interface{})
	Warnf(template string, args ...interface{})
	Warnln(args ...interface{})
	Warnw(msg string, kv KeysAndValues)
	Error(args ...interface{})
	Errorf(template string, args ...interface{})
	Errorln(args ...interface{})
	Errorw(msg string, kv KeysAndValues)
	DPanic(args ...interface{})
	DPanicf(template string, args ...interface{})
	DPanicln(args ...interface{})
	DPanicw(msg string, kv KeysAndValues)
	Panic(args ...interface{})
	Panicf(template string, args ...interface{})
	Panicln(args ...interface{})
	Panicw(msg string, kv KeysAndValues)
	Fatal(args ...interface{})
	Fatalf(template string, args ...interface{})
	Fatalln(args ...interface{})
	Fatalw(msg string, kv KeysAndValues)
}

type ZapLogger

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

func (*ZapLogger) DPanic

func (l *ZapLogger) DPanic(args ...interface{})

func (*ZapLogger) DPanicf

func (l *ZapLogger) DPanicf(template string, args ...interface{})

func (*ZapLogger) DPanicln

func (l *ZapLogger) DPanicln(args ...interface{})

func (*ZapLogger) DPanicw

func (l *ZapLogger) DPanicw(msg string, kv KeysAndValues)

func (*ZapLogger) Debug

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

func (*ZapLogger) Debugf

func (l *ZapLogger) Debugf(template string, args ...interface{})

func (*ZapLogger) Debugln

func (l *ZapLogger) Debugln(args ...interface{})

func (*ZapLogger) Debugw

func (l *ZapLogger) Debugw(msg string, kv KeysAndValues)

func (*ZapLogger) Error

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

func (*ZapLogger) Errorf

func (l *ZapLogger) Errorf(template string, args ...interface{})

func (*ZapLogger) Errorln

func (l *ZapLogger) Errorln(args ...interface{})

func (*ZapLogger) Errorw

func (l *ZapLogger) Errorw(msg string, kv KeysAndValues)

func (*ZapLogger) Fatal

func (l *ZapLogger) Fatal(args ...interface{})

func (*ZapLogger) Fatalf

func (l *ZapLogger) Fatalf(template string, args ...interface{})

func (*ZapLogger) Fatalln

func (l *ZapLogger) Fatalln(args ...interface{})

func (*ZapLogger) Fatalw

func (l *ZapLogger) Fatalw(msg string, kv KeysAndValues)

func (*ZapLogger) Info

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

func (*ZapLogger) Infof

func (l *ZapLogger) Infof(template string, args ...interface{})

func (*ZapLogger) Infoln

func (l *ZapLogger) Infoln(args ...interface{})

func (*ZapLogger) Infow

func (l *ZapLogger) Infow(msg string, kv KeysAndValues)

func (*ZapLogger) Panic

func (l *ZapLogger) Panic(args ...interface{})

func (*ZapLogger) Panicf

func (l *ZapLogger) Panicf(template string, args ...interface{})

func (*ZapLogger) Panicln

func (l *ZapLogger) Panicln(args ...interface{})

func (*ZapLogger) Panicw

func (l *ZapLogger) Panicw(msg string, kv KeysAndValues)

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(args ...interface{})

func (*ZapLogger) Warnf

func (l *ZapLogger) Warnf(template string, args ...interface{})

func (*ZapLogger) Warnln

func (l *ZapLogger) Warnln(args ...interface{})

func (*ZapLogger) Warnw

func (l *ZapLogger) Warnw(msg string, kv KeysAndValues)

Jump to

Keyboard shortcuts

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