# 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.
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.
ByteString constructs a field that carries UTF-8 encoded text as a []byte.
Complex128 constructs a field that carries a complex number.
Complex128p constructs a field that carries a *complex128.
Complex64 constructs a field that carries a complex number.
Complex64p constructs a field that carries a *complex64.
Duration constructs a field with the given key and value.
Durationp constructs a field that carries a *time.Duration.
Error is shorthand for the common idiom NamedError("error", err).
Float32 constructs a field that carries a float32.
Float32p constructs a field that carries a *float32.
Float64 constructs a field that carries a float64.
Float64p constructs a field that carries a *float64.
Inline constructs a Field that is similar to Object, but it will add the elements of the provided ObjectMarshaler to the current namespace.
Instance deprecated.
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.
Int32 constructs a field with the given key and value.
Int32p constructs a field that carries a *int32.
Int64 constructs a field with the given key and value.
Int64p constructs a field that carries a *int64.
Int8 constructs a field with the given key and value.
Int8p constructs a field that carries a *int8.
Intp constructs a field that carries a *int.
NamedError constructs a field that lazily stores err.Error() under the provided key.
Namespace creates a named, isolated scope within the logger's context.
No description provided by the author
Object constructs a field with the given key and ObjectMarshaler.
No description provided by the author
No description provided by the author
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.
Stringp constructs a field that carries a *string.
Time constructs a Field with the given key and value.
Timep constructs a field that carries a *time.Time.
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.
Uint32 constructs a field with the given key and value.
Uint32p constructs a field that carries a *uint32.
Uint64 constructs a field with the given key and value.
Uint64p constructs a field that carries a *uint64.
Uint8 constructs a field with the given key and value.
Uint8p constructs a field that carries a *uint8.
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithProductNameShort sets the name of your product used in log file names.
goland:noinspection GoUnusedExportedFunction.
# Constants
DebugLevel logs are typically voluminous, and are usually disabled in production.
No description provided by the author
DPanicLevel logs are particularly important errors.
ErrorLevel logs are high-priority.
FatalLevel logs a message, then calls os.Exit(1).
InfoLevel is the default logging priority.
PanicLevel logs a message, then panics.
WarnLevel logs are more important than Info, but don't need individual human review.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
A Level is a logging priority.
No description provided by the author