xlog_abc

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field = zap.Field

type Fields

type Fields []zap.Field

func (*Fields) Any

func (t *Fields) Any(key string, value interface{}) *Fields

func (*Fields) Binary

func (t *Fields) Binary(key string, val []byte) *Fields

func (*Fields) Bool

func (t *Fields) Bool(key string, val bool) *Fields

func (*Fields) ByteString

func (t *Fields) ByteString(key string, val []byte) *Fields

func (*Fields) Complex128

func (t *Fields) Complex128(key string, val complex128) *Fields

func (*Fields) Complex64

func (t *Fields) Complex64(key string, val complex64) *Fields

func (*Fields) Duration

func (t *Fields) Duration(key string, val time.Duration) *Fields

func (*Fields) Float32

func (t *Fields) Float32(key string, val float32) *Fields

func (*Fields) Float64

func (t *Fields) Float64(key string, val float64) *Fields

func (*Fields) Int

func (t *Fields) Int(key string, val int) *Fields

func (*Fields) Int16

func (t *Fields) Int16(key string, val int16) *Fields

func (*Fields) Int32

func (t *Fields) Int32(key string, val int32) *Fields

func (*Fields) Int64

func (t *Fields) Int64(key string, val int64) *Fields

func (*Fields) Int8

func (t *Fields) Int8(key string, val int8) *Fields

func (*Fields) Msg

func (t *Fields) Msg(format string, a ...interface{}) *Fields

func (*Fields) Object

func (t *Fields) Object(key string, val zapcore.ObjectMarshaler) *Fields

func (*Fields) Reflect

func (t *Fields) Reflect(key string, val interface{}) *Fields

func (*Fields) Skip

func (t *Fields) Skip() *Fields

func (*Fields) Stack

func (t *Fields) Stack(key string) *Fields

func (*Fields) String

func (t *Fields) String(key string, val string) *Fields

func (*Fields) Stringer

func (t *Fields) Stringer(key string, val fmt.Stringer) *Fields

func (*Fields) Time

func (t *Fields) Time(key string, val time.Time) *Fields

func (*Fields) Uint

func (t *Fields) Uint(key string, val uint) *Fields

func (*Fields) Uint16

func (t *Fields) Uint16(key string, val uint16) *Fields

func (*Fields) Uint32

func (t *Fields) Uint32(key string, val uint32) *Fields

func (*Fields) Uint64

func (t *Fields) Uint64(key string, val uint64) *Fields

func (*Fields) Uint8

func (t *Fields) Uint8(key string, val uint8) *Fields

type Option

type Option = zap.Option

type Xlog

type Xlog interface {
	DebugFn(msg string, fn func(fields *Fields))
	InfoFn(msg string, fn func(fields *Fields))
	WarnFn(msg string, fn func(fields *Fields))
	ErrorFn(msg string, fn func(fields *Fields))
	DPanicFn(msg string, fn func(fields *Fields))
	PanicFn(msg string, fn func(fields *Fields))
	FatalFn(msg string, fn func(fields *Fields))

	Debug(msg string, fields ...Field)
	Info(msg string, fields ...Field)
	Warn(msg string, fields ...Field)
	Warning(msg string, fields ...Field)
	Error(msg string, fields ...Field)
	DPanic(msg string, fields ...Field)
	Panic(msg string, fields ...Field)
	Fatal(msg string, fields ...Field)

	Debugf(format string, a ...interface{})
	Infof(format string, a ...interface{})
	Warningf(format string, a ...interface{})
	Errorf(format string, a ...interface{})
	Panicf(format string, a ...interface{})
	Fatalf(format string, a ...interface{})
	DPanicf(format string, a ...interface{})

	Named(s string, opts ...zap.Option) Xlog
	With(fields ...Field) Xlog
	Sync() error
}

Jump to

Keyboard shortcuts

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