Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Debug(msg string)
- func (l *Logger) Error(msg string)
- func (l *Logger) Info(msg string)
- func (l *Logger) Trace()
- func (l *Logger) Warn(msg string)
- func (l *Logger) WithBool(key string, val bool) *Logger
- func (l *Logger) WithErr(key string, err error) *Logger
- func (l *Logger) WithError(err error) *Logger
- func (l *Logger) WithFields(f map[string]interface{}) *Logger
- func (l *Logger) WithFloat32(key string, val float32) *Logger
- func (l *Logger) WithFloat32s(key string, val []float32) *Logger
- func (l *Logger) WithFloat64(key string, val float64) *Logger
- func (l *Logger) WithFloat64s(key string, val []float64) *Logger
- func (l *Logger) WithInt(key string, val int) *Logger
- func (l *Logger) WithInt16(key string, val int16) *Logger
- func (l *Logger) WithInt16s(key string, val []int16) *Logger
- func (l *Logger) WithInt32(key string, val int32) *Logger
- func (l *Logger) WithInt32s(key string, val []int32) *Logger
- func (l *Logger) WithInt64(key string, val int64) *Logger
- func (l *Logger) WithInt64s(key string, val []int64) *Logger
- func (l *Logger) WithInt8(key string, val int8) *Logger
- func (l *Logger) WithInt8s(key string, val []int8) *Logger
- func (l *Logger) WithInterface(key string, val interface{}) *Logger
- func (l *Logger) WithInterfaces(key string, val []interface{}) *Logger
- func (l *Logger) WithInts(key string, val []int) *Logger
- func (l *Logger) WithJSValue(key string, val js.Value) *Logger
- func (l *Logger) WithJSWrapper(key string, val js.Wrapper) *Logger
- func (l *Logger) WithObject(key string, val map[string]interface{}) *Logger
- func (l *Logger) WithString(key, val string) *Logger
- func (l *Logger) WithStrings(key string, val []string) *Logger
- func (l *Logger) WithUint(key string, val uint) *Logger
- func (l *Logger) WithUint16(key string, val uint16) *Logger
- func (l *Logger) WithUint16s(key string, val []uint16) *Logger
- func (l *Logger) WithUint32(key string, val uint32) *Logger
- func (l *Logger) WithUint32s(key string, val []uint32) *Logger
- func (l *Logger) WithUint64(key string, val uint64) *Logger
- func (l *Logger) WithUint64s(key string, val []uint64) *Logger
- func (l *Logger) WithUint8(key string, val uint8) *Logger
- func (l *Logger) WithUint8s(key string, val []uint8) *Logger
- func (l *Logger) WithUintptr(key string, val uintptr) *Logger
- func (l *Logger) WithUints(key string, val []uint) *Logger
- func (l *Logger) WithUnsafePointer(key string, val unsafe.Pointer) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger main type of the logger
func (*Logger) WithFields ¶ added in v1.0.1
WithFields appends fields set to list use only base types: nil, bool, integers, floats, string
func (*Logger) WithFloat32 ¶
WithFloat32 appends float32 to field list
func (*Logger) WithFloat32s ¶
WithFloat32s appends []float32 to field list
func (*Logger) WithFloat64 ¶
WithFloat64 appends float64 to field list
func (*Logger) WithFloat64s ¶
WithFloat64s appends []float64 to field list
func (*Logger) WithInt16s ¶
WithInt16s appends []int16 to field list
func (*Logger) WithInt32s ¶
WithInt32s appends []int32 to field list
func (*Logger) WithInt64s ¶
WithInt64s appends []int64 to field list
func (*Logger) WithInterface ¶
WithInterface appends interface{} to field list make sure that val contains type of this file only
func (*Logger) WithInterfaces ¶
WithInterfaces appends []interface{} to field list make sure that slice contains types of this file only
func (*Logger) WithJSValue ¶
WithJSValue appends js.Value to field list
func (*Logger) WithJSWrapper ¶
WithJSWrapper appends js.Wrapper to field list
func (*Logger) WithObject ¶
WithObject appends map[string]interface{} to field list make sure that interface contains types of this file only
func (*Logger) WithString ¶
WithString appends string to field list
func (*Logger) WithStrings ¶
WithStrings appends []string to field list
func (*Logger) WithUint16 ¶
WithUint16 appends uint16 to field list
func (*Logger) WithUint16s ¶
WithUint16s appends []uint16 to field list
func (*Logger) WithUint32 ¶
WithUint32 appends uint32 to field list
func (*Logger) WithUint32s ¶
WithUint32s appends []uint32 to field list
func (*Logger) WithUint64 ¶
WithUint64 appends uint64 to field list
func (*Logger) WithUint64s ¶
WithUint64s appends []uint64 to field list
func (*Logger) WithUint8s ¶
WithUint8s appends []uint8 to field list
func (*Logger) WithUintptr ¶
WithUintptr appends uintptr to field list