Documentation ¶
Index ¶
- func NewEncoder(verbosity int) zapcore.Encoder
- func NewLightWeightEncoder() zapcore.Encoder
- func WithLevel(level zapcore.Level) zap.Option
- type CLILogger
- func (l *CLILogger) Debug(msg string, fields ...zapcore.Field)
- func (l *CLILogger) Error(msg string, fields ...zapcore.Field)
- func (l *CLILogger) FatalAppError(app string, err error)
- func (l *CLILogger) LoggerReference() **zap.Logger
- func (l *CLILogger) Printf(template string, args ...interface{})
- func (l *CLILogger) ReconfigureReference()
- func (l *CLILogger) Warn(msg string, fields ...zapcore.Field)
- type Encoder
- func (enc Encoder) AddArray(key string, arr zapcore.ArrayMarshaler) error
- func (enc Encoder) AddBinary(key string, val []byte)
- func (enc Encoder) AddBool(key string, val bool)
- func (enc Encoder) AddByteString(key string, val []byte)
- func (enc Encoder) AddComplex128(key string, val complex128)
- func (enc Encoder) AddComplex64(k string, v complex64)
- func (enc Encoder) AddDuration(key string, val time.Duration)
- func (enc Encoder) AddFloat32(k string, v float32)
- func (enc Encoder) AddFloat64(key string, val float64)
- func (enc Encoder) AddInt(k string, v int)
- func (enc Encoder) AddInt16(k string, v int16)
- func (enc Encoder) AddInt32(k string, v int32)
- func (enc Encoder) AddInt64(key string, val int64)
- func (enc Encoder) AddInt8(k string, v int8)
- func (enc Encoder) AddObject(key string, obj zapcore.ObjectMarshaler) error
- func (enc Encoder) AddReflected(key string, obj interface{}) error
- func (enc Encoder) AddString(key, val string)
- func (enc Encoder) AddTime(key string, val time.Time)
- func (enc Encoder) AddUint(k string, v uint)
- func (enc Encoder) AddUint16(k string, v uint16)
- func (enc Encoder) AddUint32(k string, v uint32)
- func (enc Encoder) AddUint64(key string, val uint64)
- func (enc Encoder) AddUint8(k string, v uint8)
- func (enc Encoder) AddUintptr(k string, v uintptr)
- func (enc Encoder) AppendArray(arr zapcore.ArrayMarshaler) error
- func (enc Encoder) AppendBool(val bool)
- func (enc Encoder) AppendByteString(val []byte)
- func (enc Encoder) AppendComplex128(val complex128)
- func (enc Encoder) AppendComplex64(v complex64)
- func (enc Encoder) AppendDuration(val time.Duration)
- func (enc Encoder) AppendFloat32(v float32)
- func (enc Encoder) AppendFloat64(v float64)
- func (enc Encoder) AppendInt(v int)
- func (enc Encoder) AppendInt16(v int16)
- func (enc Encoder) AppendInt32(v int32)
- func (enc Encoder) AppendInt64(val int64)
- func (enc Encoder) AppendInt8(v int8)
- func (enc Encoder) AppendObject(obj zapcore.ObjectMarshaler) error
- func (enc Encoder) AppendReflected(val interface{}) error
- func (enc Encoder) AppendString(val string)
- func (enc Encoder) AppendTime(val time.Time)
- func (enc Encoder) AppendTimeLayout(time time.Time, layout string)
- func (enc Encoder) AppendUint(v uint)
- func (enc Encoder) AppendUint16(v uint16)
- func (enc Encoder) AppendUint32(v uint32)
- func (enc Encoder) AppendUint64(val uint64)
- func (enc Encoder) AppendUint8(v uint8)
- func (enc Encoder) AppendUintptr(v uintptr)
- func (c Encoder) Clone() zapcore.Encoder
- func (c Encoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error)
- func (enc Encoder) OpenNamespace(key string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEncoder ¶
func NewLightWeightEncoder ¶
Types ¶
type CLILogger ¶
type CLILogger struct {
// contains filtered or unexported fields
}
CLILogger wraps a `zap.Logger` pointer and offers only a printf like interface
func NewCLILogger ¶
func (*CLILogger) FatalAppError ¶
func (*CLILogger) LoggerReference ¶
func (*CLILogger) ReconfigureReference ¶
func (l *CLILogger) ReconfigureReference()
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func (Encoder) AddByteString ¶
func (Encoder) AddComplex128 ¶
func (enc Encoder) AddComplex128(key string, val complex128)
func (Encoder) AddComplex64 ¶
func (Encoder) AddDuration ¶
func (Encoder) AddFloat32 ¶
func (Encoder) AddFloat64 ¶
func (Encoder) AddObject ¶
func (enc Encoder) AddObject(key string, obj zapcore.ObjectMarshaler) error
func (Encoder) AddReflected ¶
func (Encoder) AddUintptr ¶
func (Encoder) AppendArray ¶
func (enc Encoder) AppendArray(arr zapcore.ArrayMarshaler) error
func (Encoder) AppendBool ¶
func (enc Encoder) AppendBool(val bool)
func (Encoder) AppendByteString ¶
func (enc Encoder) AppendByteString(val []byte)
func (Encoder) AppendComplex128 ¶
func (enc Encoder) AppendComplex128(val complex128)
func (Encoder) AppendComplex64 ¶
func (enc Encoder) AppendComplex64(v complex64)
func (Encoder) AppendDuration ¶
func (Encoder) AppendFloat32 ¶
func (enc Encoder) AppendFloat32(v float32)
func (Encoder) AppendFloat64 ¶
func (enc Encoder) AppendFloat64(v float64)
func (Encoder) AppendInt16 ¶
func (enc Encoder) AppendInt16(v int16)
func (Encoder) AppendInt32 ¶
func (enc Encoder) AppendInt32(v int32)
func (Encoder) AppendInt64 ¶
func (enc Encoder) AppendInt64(val int64)
func (Encoder) AppendInt8 ¶
func (enc Encoder) AppendInt8(v int8)
func (Encoder) AppendObject ¶
func (enc Encoder) AppendObject(obj zapcore.ObjectMarshaler) error
func (Encoder) AppendReflected ¶
func (enc Encoder) AppendReflected(val interface{}) error
func (Encoder) AppendString ¶
func (enc Encoder) AppendString(val string)
func (Encoder) AppendTime ¶
func (Encoder) AppendTimeLayout ¶
func (Encoder) AppendUint ¶
func (enc Encoder) AppendUint(v uint)
func (Encoder) AppendUint16 ¶
func (enc Encoder) AppendUint16(v uint16)
func (Encoder) AppendUint32 ¶
func (enc Encoder) AppendUint32(v uint32)
func (Encoder) AppendUint64 ¶
func (enc Encoder) AppendUint64(val uint64)
func (Encoder) AppendUint8 ¶
func (enc Encoder) AppendUint8(v uint8)
func (Encoder) AppendUintptr ¶
func (enc Encoder) AppendUintptr(v uintptr)
func (Encoder) EncodeEntry ¶
func (Encoder) OpenNamespace ¶
func (enc Encoder) OpenNamespace(key string)
Click to show internal directories.
Click to hide internal directories.