# Functions
Any takes a key and an arbitrary value and chooses the best way to represent them as a field, falling back to a reflection-based approach only if necessary.
Array constructs a field with the given key and ArrayMarshaler.
Binary constructs a field that carries an opaque binary blob.
Bool constructs a field that carries a bool.
Boolp constructs a field that carries a *bool.
Bools constructs a field that carries a slice of bools.
ByteString constructs a field that carries UTF-8 encoded text as a []byte.
ByteStrings constructs a field that carries a slice of []byte, each of which must be UTF-8 encoded text.
Complex128 constructs a field that carries a complex number.
Complex128p constructs a field that carries a *complex128.
Complex128s constructs a field that carries a slice of complex numbers.
Complex64 constructs a field that carries a complex number.
Complex64p constructs a field that carries a *complex64.
Complex64s constructs a field that carries a slice of complex numbers.
Dict constructs a field containing the provided key-value pairs.
Duration constructs a field with the given key and value.
Durationp constructs a field that carries a *time.Duration.
Durations constructs a field that carries a slice of time.Durations.
Errors constructs a field that carries a slice of errors.
Float32 constructs a field that carries a float32.
Float32p constructs a field that carries a *float32.
Float32s constructs a field that carries a slice of floats.
Float64 constructs a field that carries a float64.
Float64p constructs a field that carries a *float64.
Float64s constructs a field that carries a slice of floats.
No description provided by the author
Inline constructs a Field that is similar to Object, but it will add the elements of the provided ObjectMarshaler to the current namespace.
Int constructs a field with the given key and value.
Int16 constructs a field with the given key and value.
Int16p constructs a field that carries a *int16.
Int16s constructs a field that carries a slice of integers.
Int32 constructs a field with the given key and value.
Int32p constructs a field that carries a *int32.
Int32s constructs a field that carries a slice of integers.
Int64 constructs a field with the given key and value.
Int64p constructs a field that carries a *int64.
Int64s constructs a field that carries a slice of integers.
Int8 constructs a field with the given key and value.
Int8p constructs a field that carries a *int8.
Int8s constructs a field that carries a slice of integers.
Intp constructs a field that carries a *int.
Ints constructs a field that carries a slice of integers.
Namespace creates a named, isolated scope within the logger's context.
Object constructs a field with the given key and ObjectMarshaler.
Objects constructs a field with the given key, holding a list of the provided objects that can be marshaled by Zap.
Reflect constructs a field with the given key and an arbitrary object.
Skip constructs a no-op field, which is often useful when handling invalid inputs in other Field constructors.
Stack constructs a field that stores a stacktrace of the current goroutine under provided key.
StackSkip constructs a field similarly to Stack, but also skips the given number of frames from the top of the stacktrace.
String constructs a field with the given key and value.
Stringer constructs a field with the given key and the output of the value's String method.
Stringers constructs a field with the given key, holding a list of the output provided by the value's String method
Given an object that implements String on the value receiver, you can log a slice of those objects with Objects like so:
type Request struct{ ..
Stringp constructs a field that carries a *string.
Strings constructs a field that carries a slice of strings.
Time constructs a Field with the given key and value.
Timep constructs a field that carries a *time.Time.
Times constructs a field that carries a slice of time.Times.
Uint constructs a field with the given key and value.
Uint16 constructs a field with the given key and value.
Uint16p constructs a field that carries a *uint16.
Uint16s constructs a field that carries a slice of unsigned integers.
Uint32 constructs a field with the given key and value.
Uint32p constructs a field that carries a *uint32.
Uint32s constructs a field that carries a slice of unsigned integers.
Uint64 constructs a field with the given key and value.
Uint64p constructs a field that carries a *uint64.
Uint64s constructs a field that carries a slice of unsigned integers.
Uint8 constructs a field with the given key and value.
Uint8p constructs a field that carries a *uint8.
Uint8s constructs a field that carries a slice of unsigned integers.
Uintp constructs a field that carries a *uint.
Uintptr constructs a field with the given key and value.
Uintptrp constructs a field that carries a *uintptr.
Uintptrs constructs a field that carries a slice of pointer addresses.
Uints constructs a field that carries a slice of unsigned integers.
# Variables
No description provided by the author
# Structs
LogEntry records the final log when a request completes.
LogFormatter initiates the beginning of a new logEntry per request.
# Type aliases
Field is an alias for Field.