Versions in this module Expand all Collapse all v1 v1.0.1 Sep 21, 2023 Changes in this version + const DefaultLogDateFormat + const DefaultLogFormat + const DefaultLogLevel + const DefaultLogSeparator + const EnvKeyLogCtx + const EnvKeyLogDateFormat + const EnvKeyLogFormat + const EnvKeyLogLevel + const EnvKeyLogSeparator + func CtxLoggingEnabled() bool + func SetLogLevel(logger Logger, level Level) + func Sync() + type Field = interface + func FieldAny(key string, val interface{}) Field + func FieldBinary(key string, val []byte) Field + func FieldBool(key string, val bool) Field + func FieldBools(key string, vals []bool) Field + func FieldByteString(key string, val []byte) Field + func FieldByteStrings(key string, vals [][]byte) Field + func FieldDuration(key string, val time.Duration) Field + func FieldDurations(key string, vals []time.Duration) Field + func FieldError(err error) Field + func FieldErrors(key string, errs []error) Field + func FieldFloat32(key string, val float32) Field + func FieldFloat32s(key string, vals []float32) Field + func FieldFloat64(key string, val float64) Field + func FieldFloat64s(key string, vals []float64) Field + func FieldInt(key string, val int) Field + func FieldInt32(key string, val int32) Field + func FieldInt64(key string, val int64) Field + func FieldInt64s(key string, vals []int64) Field + func FieldInts(key string, vals []int) Field + func FieldNamedError(key string, err error) Field + func FieldNamespace(key string) Field + func FieldObject(key string, val interface{}) Field + func FieldSkip() Field + func FieldStack(key string) Field + func FieldString(key string, val string) Field + func FieldStringer(key string, val fmt.Stringer) Field + func FieldStrings(key string, vals []string) Field + func FieldTime(key string, val time.Time) Field + func FieldTimes(key string, vals []time.Time) Field + type Format int + const FormatConsole + const FormatJson + type Level int + const DebugLevel + const ErrorLevel + const InfoLevel + const TraceLevel + const WarnLevel + func ToLogLevel(lvlStr string) Level + type Logger interface + Debug func(args ...interface{}) + DebugEnabled func() bool + Debugf func(template string, args ...interface{}) + Error func(args ...interface{}) + Errorf func(template string, args ...interface{}) + Info func(args ...interface{}) + Infof func(template string, args ...interface{}) + Structured func() StructuredLogger + Trace func(args ...interface{}) + TraceEnabled func() bool + Tracef func(template string, args ...interface{}) + Warn func(args ...interface{}) + Warnf func(template string, args ...interface{}) + func ChildLogger(logger Logger, name string) Logger + func ChildLoggerWithFields(logger Logger, fields ...Field) Logger + func CreateLoggerFromRef(logger Logger, contributionType, ref string) Logger + func NewLogger(name string) Logger + func RootLogger() Logger + type StructuredLogger interface + Debug func(msg string, fields ...Field) + Error func(msg string, fields ...Field) + Info func(msg string, fields ...Field) + Warn func(msg string, fields ...Field)