Versions in this module Expand all Collapse all v0 v0.2.0 Jan 12, 2021 Changes in this version + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const WarnLevel + type Config struct + Driver string + Encoding string + FileName string + Level int8 + RetainCompress bool + RetainLocalTime bool + RetainMaxAge int + RetainMaxBackups int + RotationMaxSize int + type FastXLog interface + AddCallerSkip func(n int) FastXLog + Debug func(msg string) + Error func(msg string) + Fatal func(msg string) + FromCtx func(ctx context.Context) FastXLog + Info func(msg string) + Panic func(msg string) + Sync func() + ToCtx func(ctx context.Context, kvs ...KeyVal) context.Context + Warn func(msg string) + With func(kvs ...KeyVal) FastXLog + WithOptions func(opts ...Option) FastXLog + XLog func() XLog + type KeyVal struct + Integer int64 + Interface interface{} + Key string + String string + Type KeyValType + func Any(key string, value interface{}) KeyVal + func Bool(key string, val bool) KeyVal + func Boolp(key string, val *bool) KeyVal + func ByteString(key string, val []byte) KeyVal + func Complex128(key string, val complex128) KeyVal + func Complex128p(key string, val *complex128) KeyVal + func Complex64(key string, val complex64) KeyVal + func Complex64p(key string, val *complex64) KeyVal + func Duration(key string, val time.Duration) KeyVal + func Durationp(key string, val *time.Duration) KeyVal + func Float32(key string, val float32) KeyVal + func Float32p(key string, val *float32) KeyVal + func Float64(key string, val float64) KeyVal + func Float64p(key string, val *float64) KeyVal + func Int(key string, val int) KeyVal + func Int16(key string, val int16) KeyVal + func Int16p(key string, val *int16) KeyVal + func Int32(key string, val int32) KeyVal + func Int32p(key string, val *int32) KeyVal + func Int64(key string, val int64) KeyVal + func Int64p(key string, val *int64) KeyVal + func Int8(key string, val int8) KeyVal + func Int8p(key string, val *int8) KeyVal + func Intp(key string, val *int) KeyVal + func NamedError(key string, err error) KeyVal + func Namespace(key string) KeyVal + func Reflect(key string, val interface{}) KeyVal + func Skip() KeyVal + func String(key string, val string) KeyVal + func Stringer(key string, val fmt.Stringer) KeyVal + func Stringp(key string, val *string) KeyVal + func Time(key string, val time.Time) KeyVal + func Timep(key string, val *time.Time) KeyVal + func Uint(key string, val uint) KeyVal + func Uint16(key string, val uint16) KeyVal + func Uint16p(key string, val *uint16) KeyVal + func Uint32(key string, val uint32) KeyVal + func Uint32p(key string, val *uint32) KeyVal + func Uint64(key string, val uint64) KeyVal + func Uint64p(key string, val *uint64) KeyVal + func Uint8(key string, val uint8) KeyVal + func Uint8p(key string, val *uint8) KeyVal + func Uintp(key string, val *uint) KeyVal + func Uintptr(key string, val uintptr) KeyVal + func Uintptrp(key string, val *uintptr) KeyVal + type KeyValType uint8 + const ArrayMarshalerType + const BinaryType + const BoolType + const ByteStringType + const Complex128Type + const Complex64Type + const DurationType + const ErrorType + const Float32Type + const Float64Type + const Int16Type + const Int32Type + const Int64Type + const Int8Type + const NamespaceType + const ObjectMarshalerType + const ReflectType + const SkipType + const StringType + const StringerType + const TimeFullType + const TimeType + const Uint16Type + const Uint32Type + const Uint64Type + const Uint8Type + const UintptrType + const UnknownType + type Option func(*Options) + func OptionWithAddCallerSkip(n int) Option + type Options struct + AddCallerSkip *int + type XLog interface + AddCallerSkip func(n int) XLog + Debug func(args ...interface{}) + Debugf func(tpl string, args ...interface{}) + Error func(args ...interface{}) + Errorf func(tpl string, args ...interface{}) + Fast func() FastXLog + Fatal func(args ...interface{}) + Fatalf func(tpl string, args ...interface{}) + FromCtx func(ctx context.Context) XLog + Info func(args ...interface{}) + Infof func(tpl string, args ...interface{}) + Panic func(args ...interface{}) + Panicf func(tpl string, args ...interface{}) + Sync func() + ToCtx func(ctx context.Context, kvs ...interface{}) context.Context + Warn func(args ...interface{}) + Warnf func(tpl string, args ...interface{}) + With func(kvs ...interface{}) XLog + WithOptions func(opts ...Option) XLog