type go.uber.org/zap.Field
133 uses
go.uber.org/zap (current package)
array.go#L33: func Array(key string, val zapcore.ArrayMarshaler) Field {
array.go#L34: return Field{Key: key, Type: zapcore.ArrayMarshalerType, Interface: val}
array.go#L38: func Bools(key string, bs []bool) Field {
array.go#L44: func ByteStrings(key string, bss [][]byte) Field {
array.go#L49: func Complex128s(key string, nums []complex128) Field {
array.go#L54: func Complex64s(key string, nums []complex64) Field {
array.go#L59: func Durations(key string, ds []time.Duration) Field {
array.go#L64: func Float64s(key string, nums []float64) Field {
array.go#L69: func Float32s(key string, nums []float32) Field {
array.go#L74: func Ints(key string, nums []int) Field {
array.go#L79: func Int64s(key string, nums []int64) Field {
array.go#L84: func Int32s(key string, nums []int32) Field {
array.go#L89: func Int16s(key string, nums []int16) Field {
array.go#L94: func Int8s(key string, nums []int8) Field {
array.go#L130: func Objects[T zapcore.ObjectMarshaler](key string, values []T) Field {
array.go#L174: func ObjectValues[T any, P ObjectMarshalerPtr[T]](key string, values []T) Field {
array.go#L197: func Strings(key string, ss []string) Field {
array.go#L216: func Stringers[T fmt.Stringer](key string, values []T) Field {
array.go#L230: func Times(key string, ts []time.Time) Field {
array.go#L235: func Uints(key string, nums []uint) Field {
array.go#L240: func Uint64s(key string, nums []uint64) Field {
array.go#L245: func Uint32s(key string, nums []uint32) Field {
array.go#L250: func Uint16s(key string, nums []uint16) Field {
array.go#L255: func Uint8s(key string, nums []uint8) Field {
array.go#L260: func Uintptrs(key string, us []uintptr) Field {
array.go#L265: func Errors(key string, errs []error) Field {
config.go#L300: fs := make([]Field, 0, len(cfg.InitialFields))
error.go#L33: func Error(err error) Field {
error.go#L44: func NamedError(key string, err error) Field {
error.go#L48: return Field{Key: key, Type: zapcore.ErrorType, Interface: err}
field.go#L34: type Field = zapcore.Field
field.go#L43: func Skip() Field {
field.go#L44: return Field{Type: zapcore.SkipType}
field.go#L51: func nilField(key string) Field { return Reflect(key, nil) }
field.go#L58: func Binary(key string, val []byte) Field {
field.go#L59: return Field{Key: key, Type: zapcore.BinaryType, Interface: val}
field.go#L63: func Bool(key string, val bool) Field {
field.go#L68: return Field{Key: key, Type: zapcore.BoolType, Integer: ival}
field.go#L73: func Boolp(key string, val *bool) Field {
field.go#L83: func ByteString(key string, val []byte) Field {
field.go#L84: return Field{Key: key, Type: zapcore.ByteStringType, Interface: val}
field.go#L90: func Complex128(key string, val complex128) Field {
field.go#L91: return Field{Key: key, Type: zapcore.Complex128Type, Interface: val}
field.go#L96: func Complex128p(key string, val *complex128) Field {
field.go#L106: func Complex64(key string, val complex64) Field {
field.go#L107: return Field{Key: key, Type: zapcore.Complex64Type, Interface: val}
field.go#L112: func Complex64p(key string, val *complex64) Field {
field.go#L122: func Float64(key string, val float64) Field {
field.go#L123: return Field{Key: key, Type: zapcore.Float64Type, Integer: int64(math.Float64bits(val))}
field.go#L128: func Float64p(key string, val *float64) Field {
field.go#L138: func Float32(key string, val float32) Field {
field.go#L139: return Field{Key: key, Type: zapcore.Float32Type, Integer: int64(math.Float32bits(val))}
field.go#L144: func Float32p(key string, val *float32) Field {
field.go#L152: func Int(key string, val int) Field {
field.go#L158: func Intp(key string, val *int) Field {
field.go#L166: func Int64(key string, val int64) Field {
field.go#L167: return Field{Key: key, Type: zapcore.Int64Type, Integer: val}
field.go#L172: func Int64p(key string, val *int64) Field {
field.go#L180: func Int32(key string, val int32) Field {
field.go#L181: return Field{Key: key, Type: zapcore.Int32Type, Integer: int64(val)}
field.go#L186: func Int32p(key string, val *int32) Field {
field.go#L194: func Int16(key string, val int16) Field {
field.go#L195: return Field{Key: key, Type: zapcore.Int16Type, Integer: int64(val)}
field.go#L200: func Int16p(key string, val *int16) Field {
field.go#L208: func Int8(key string, val int8) Field {
field.go#L209: return Field{Key: key, Type: zapcore.Int8Type, Integer: int64(val)}
field.go#L214: func Int8p(key string, val *int8) Field {
field.go#L222: func String(key string, val string) Field {
field.go#L223: return Field{Key: key, Type: zapcore.StringType, String: val}
field.go#L228: func Stringp(key string, val *string) Field {
field.go#L236: func Uint(key string, val uint) Field {
field.go#L242: func Uintp(key string, val *uint) Field {
field.go#L250: func Uint64(key string, val uint64) Field {
field.go#L251: return Field{Key: key, Type: zapcore.Uint64Type, Integer: int64(val)}
field.go#L256: func Uint64p(key string, val *uint64) Field {
field.go#L264: func Uint32(key string, val uint32) Field {
field.go#L265: return Field{Key: key, Type: zapcore.Uint32Type, Integer: int64(val)}
field.go#L270: func Uint32p(key string, val *uint32) Field {
field.go#L278: func Uint16(key string, val uint16) Field {
field.go#L279: return Field{Key: key, Type: zapcore.Uint16Type, Integer: int64(val)}
field.go#L284: func Uint16p(key string, val *uint16) Field {
field.go#L292: func Uint8(key string, val uint8) Field {
field.go#L293: return Field{Key: key, Type: zapcore.Uint8Type, Integer: int64(val)}
field.go#L298: func Uint8p(key string, val *uint8) Field {
field.go#L306: func Uintptr(key string, val uintptr) Field {
field.go#L307: return Field{Key: key, Type: zapcore.UintptrType, Integer: int64(val)}
field.go#L312: func Uintptrp(key string, val *uintptr) Field {
field.go#L326: func Reflect(key string, val interface{}) Field {
field.go#L327: return Field{Key: key, Type: zapcore.ReflectType, Interface: val}
field.go#L335: func Namespace(key string) Field {
field.go#L336: return Field{Key: key, Type: zapcore.NamespaceType}
field.go#L341: func Stringer(key string, val fmt.Stringer) Field {
field.go#L342: return Field{Key: key, Type: zapcore.StringerType, Interface: val}
field.go#L347: func Time(key string, val time.Time) Field {
field.go#L349: return Field{Key: key, Type: zapcore.TimeFullType, Interface: val}
field.go#L351: return Field{Key: key, Type: zapcore.TimeType, Integer: val.UnixNano(), Interface: val.Location()}
field.go#L356: func Timep(key string, val *time.Time) Field {
field.go#L367: func Stack(key string) Field {
field.go#L373: func StackSkip(key string, skip int) Field {
field.go#L383: func Duration(key string, val time.Duration) Field {
field.go#L384: return Field{Key: key, Type: zapcore.DurationType, Integer: int64(val)}
field.go#L389: func Durationp(key string, val *time.Duration) Field {
field.go#L400: func Object(key string, val zapcore.ObjectMarshaler) Field {
field.go#L401: return Field{Key: key, Type: zapcore.ObjectMarshalerType, Interface: val}
field.go#L407: func Inline(val zapcore.ObjectMarshaler) Field {
field.go#L416: func Dict(key string, val ...Field) Field {
field.go#L421: func dictField(key string, val []Field) Field {
field.go#L425: type dictObject []Field
field.go#L463: type anyFieldC[T any] func(string, T) Field
field.go#L465: func (f anyFieldC[T]) Any(key string, val any) Field {
field.go#L478: func Any(key string, value interface{}) Field {
field.go#L479: var c interface{ Any(string, any) Field }
field.go#L486: case []Field:
field.go#L487: c = anyFieldC[[]Field](dictField)
global.go#L141: func levelToFunc(logger *Logger, lvl zapcore.Level) (func(string, ...Field), error) {
global.go#L162: logFunc func(msg string, fields ...Field)
logger.go#L179: func (log *Logger) With(fields ...Field) *Logger {
logger.go#L201: func (log *Logger) WithLazy(fields ...Field) *Logger {
logger.go#L228: func (log *Logger) Log(lvl zapcore.Level, msg string, fields ...Field) {
logger.go#L236: func (log *Logger) Debug(msg string, fields ...Field) {
logger.go#L244: func (log *Logger) Info(msg string, fields ...Field) {
logger.go#L252: func (log *Logger) Warn(msg string, fields ...Field) {
logger.go#L260: func (log *Logger) Error(msg string, fields ...Field) {
logger.go#L272: func (log *Logger) DPanic(msg string, fields ...Field) {
logger.go#L282: func (log *Logger) Panic(msg string, fields ...Field) {
logger.go#L293: func (log *Logger) Fatal(msg string, fields ...Field) {
options.go#L62: func Fields(fs ...Field) Option {
sugar.go#L356: func (s *SugaredLogger) sweetenFields(args []interface{}) []Field {
sugar.go#L364: fields = make([]Field, 0, len(args))
sugar.go#L371: if f, ok := args[i].(Field); ok {
github.com/gotd/td/internal/mtproto
connect.go#L67: fields := []zap.Field{
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |