# Functions
AddCallerSkip for loggers that implement LoggerAddCallerSkip interface, returns logger that adds caller skip to each log entry.
Any tries to deduce interface{} underlying type and constructs Field from it.
Array constructs field of array type.
Binary constructs field of []byte type.
Bool constructs field of bool type.
Bools constructs Field from []bool.
ByteString constructs field of bytes that could represent UTF-8 string.
Context constructs field for lazy context fields evaluation if possible.
Duration constructs field of time.Duration type.
Durations constructs Field from []time.Duration.
Error constructs field of error type with default field name.
Errors constructs Field from []error.
Float32 constructs Field from float32.
Float32s constructs Field from []float32.
Float64 constructs Field from float64.
Float64s constructs Field from []float64.
Int constructs Field from int.
Int16 constructs Field from int16.
Int16s constructs Field from []int16.
Int32 constructs Field from int32.
Int32s constructs Field from []int32.
Int64 constructs Field from int64.
Int64s constructs Field from []int64.
Int8 constructs Field from int8.
Int8s constructs Field from []int8.
Ints constructs Field from []int.
Lazy constructs field with lazy evaluation type.
No description provided by the author
NamedError constructs field of error type.
Nil constructs field of nil type.
ParseLevel parses log level from string.
Reflect constructs field of unknown type.
Sprintf constructs field of string type with formatting.
String constructs field of string type.
Strings constructs Field from []string.
Time constructs field of time.Time type.
Times constructs Field from []time.Time.
UInt constructs Field from uint.
UInt16 constructs Field from uint16.
UInt16s constructs Field from []uint16.
UInt32 constructs Field from uint32.
UInt32s constructs Field from []uint32.
UInt64 constructs Field from uint64.
UInt64s constructs Field from []uint64.
UInt8 constructs Field from uint8.
UInt8s constructs Field from []uint8.
UInts constructs Field from []uint.
With for loggers that implement LoggerWith interface, returns logger that always adds provided key/value to every log entry.
WriteAt is a helper method that checks logger and writes message at given level.
# Constants
Standard log levels.
String values for standard log levels.
DefaultErrorFieldName is the default field name used for errors.
Standard log levels.
String values for standard log levels.
Standard log levels.
String values for standard log levels.
FieldTypeAny is for any type.
FieldTypeArray is for an array of any type.
FieldTypeBinary is for a binary array.
FieldTypeBoolean is for boolean.
FieldTypeByteString is for a bytes that can be represented as UTF-8 string.
FieldTypeContext wraps context for lazy context fields evaluation if possible.
FieldTypeDuration is for time.Duration.
FieldTypeError is for an error.
FieldTypeFloat is for float.
FieldTypeLazyCall wraps function to lazy evaluate it after log level confirm.
FieldTypeNil is for a pure nil.
FieldTypeReflect is for unknown types.
FieldTypeSigned is for signed integers.
FieldTypeString is for a string.
FieldTypeTime is for time.Time.
FieldTypeUnsigned is for unsigned integers.
Standard log levels.
String values for standard log levels.
Standard log levels.
String values for standard log levels.
Standard log levels.
String values for standard log levels.
# Interfaces
Fmt provides interface for logging using fmt formatter.
LazyEvaluator represents types that can be evaluate in a lazy manner.
Logger is the universal logger that can do everything.
LoggerAddCallerSkip is an interface for 'AddCallerSkip' function.
LoggerWith is an interface for 'With' function LoggerWith provides interface for logger modifications.
Structured provides interface for logging using fields.