package
0.0.0-20221210010535-137c36e4812e
Repository: https://github.com/davidwartell/go-commons-drw.git
Documentation: pkg.go.dev

# 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.goland:noinspection GoUnusedExportedFunction.
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.goland:noinspection GoUnusedExportedFunction.
No description provided by the author
Int constructs a field with the given key and value.goland:noinspection GoUnusedExportedFunction.
Int16 constructs a field with the given key and value.goland:noinspection GoUnusedExportedFunction.
Int16p constructs a field that carries a *int16.
Int32 constructs a field with the given key and value.goland:noinspection GoUnusedExportedFunction.
Int32p constructs a field that carries a *int32.
Int64 constructs a field with the given key and value.goland:noinspection GoUnusedExportedFunction.
Int64p constructs a field that carries a *int64.
Int8 constructs a field with the given key and value.goland:noinspection GoUnusedExportedFunction.
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.
Object constructs a field with the given key and ObjectMarshaler.
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.goland:noinspection GoUnusedExportedFunction.
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.goland:noinspection GoUnusedExportedFunction.
String constructs a field with the given key and value.goland:noinspection GoUnusedExportedFunction.
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.goland:noinspection GoUnusedExportedFunction.
Uint16 constructs a field with the given key and value.goland:noinspection GoUnusedExportedFunction.
Uint16p constructs a field that carries a *uint16.
Uint32 constructs a field with the given key and value.goland:noinspection GoUnusedExportedFunction.
Uint32p constructs a field that carries a *uint32.
Uint64 constructs a field with the given key and value.goland:noinspection GoUnusedExportedFunction.
Uint64p constructs a field that carries a *uint64.
Uint8 constructs a field with the given key and value.goland:noinspection GoUnusedExportedFunction.
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.goland:noinspection GoUnusedExportedFunction.
Uintptrp constructs a field that carries a *uintptr.
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.
goland:noinspection GoUnusedConst.
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

# Type aliases

No description provided by the author
A Level is a logging priority.
No description provided by the author