Documentation
¶
Index ¶
- type Array
- func (a *Array) Bool(b bool) conflow.LogArray
- func (a *Array) Bytes(val []byte) conflow.LogArray
- func (a *Array) Dur(d time.Duration) conflow.LogArray
- func (a *Array) Err(err error) conflow.LogArray
- func (a *Array) Float32(f float32) conflow.LogArray
- func (a *Array) Float64(f float64) conflow.LogArray
- func (a *Array) Hex(val []byte) conflow.LogArray
- func (a *Array) ID(val conflow.ID) conflow.LogArray
- func (a *Array) IPAddr(ip net.IP) conflow.LogArray
- func (a *Array) IPPrefix(pfx net.IPNet) conflow.LogArray
- func (a *Array) Int(i int) conflow.LogArray
- func (a *Array) Int8(i int8) conflow.LogArray
- func (a *Array) Int16(i int16) conflow.LogArray
- func (a *Array) Int32(i int32) conflow.LogArray
- func (a *Array) Int64(i int64) conflow.LogArray
- func (a *Array) Interface(i interface{}) conflow.LogArray
- func (a *Array) MACAddr(ha net.HardwareAddr) conflow.LogArray
- func (a *Array) MarshalLogArray(conflow.LogArray)
- func (a *Array) MarshalZerologArray(*zerolog.Array)
- func (a *Array) Object(obj conflow.LogObjectMarshaler) conflow.LogArray
- func (a *Array) Str(val string) conflow.LogArray
- func (a *Array) Time(t time.Time) conflow.LogArray
- func (a *Array) Uint(i uint) conflow.LogArray
- func (a *Array) Uint8(i uint8) conflow.LogArray
- func (a *Array) Uint16(i uint16) conflow.LogArray
- func (a *Array) Uint32(i uint32) conflow.LogArray
- func (a *Array) Uint64(i uint64) conflow.LogArray
- type ArrayMarshalerWrapper
- type Context
- func (c *Context) AnErr(key string, err error) conflow.LoggerContext
- func (c *Context) Array(key string, arr conflow.LogArrayMarshaler) conflow.LoggerContext
- func (c *Context) Bool(key string, b bool) conflow.LoggerContext
- func (c *Context) Bools(key string, b []bool) conflow.LoggerContext
- func (c *Context) Bytes(key string, val []byte) conflow.LoggerContext
- func (c *Context) Caller() conflow.LoggerContext
- func (c *Context) CallerWithSkipFrameCount(skipFrameCount int) conflow.LoggerContext
- func (c *Context) Dict(key string, dict conflow.LogEvent) conflow.LoggerContext
- func (c *Context) Dur(key string, d time.Duration) conflow.LoggerContext
- func (c *Context) Durs(key string, d []time.Duration) conflow.LoggerContext
- func (c *Context) EmbedObject(obj conflow.LogObjectMarshaler) conflow.LoggerContext
- func (c *Context) Err(err error) conflow.LoggerContext
- func (c *Context) Errs(key string, errs []error) conflow.LoggerContext
- func (c *Context) Fields(fields map[string]interface{}) conflow.LoggerContext
- func (c *Context) Float32(key string, f float32) conflow.LoggerContext
- func (c *Context) Float64(key string, f float64) conflow.LoggerContext
- func (c *Context) Floats32(key string, f []float32) conflow.LoggerContext
- func (c *Context) Floats64(key string, f []float64) conflow.LoggerContext
- func (c *Context) Hex(key string, val []byte) conflow.LoggerContext
- func (c *Context) ID(key string, val conflow.ID) conflow.LoggerContext
- func (c *Context) IPAddr(key string, ip net.IP) conflow.LoggerContext
- func (c *Context) IPPrefix(key string, pfx net.IPNet) conflow.LoggerContext
- func (c *Context) Int(key string, i int) conflow.LoggerContext
- func (c *Context) Int8(key string, i int8) conflow.LoggerContext
- func (c *Context) Int16(key string, i int16) conflow.LoggerContext
- func (c *Context) Int32(key string, i int32) conflow.LoggerContext
- func (c *Context) Int64(key string, i int64) conflow.LoggerContext
- func (c *Context) Interface(key string, i interface{}) conflow.LoggerContext
- func (c *Context) Ints(key string, i []int) conflow.LoggerContext
- func (c *Context) Ints8(key string, i []int8) conflow.LoggerContext
- func (c *Context) Ints16(key string, i []int16) conflow.LoggerContext
- func (c *Context) Ints32(key string, i []int32) conflow.LoggerContext
- func (c *Context) Ints64(key string, i []int64) conflow.LoggerContext
- func (c *Context) Logger() conflow.Logger
- func (c *Context) MACAddr(key string, ha net.HardwareAddr) conflow.LoggerContext
- func (c *Context) Object(key string, obj conflow.LogObjectMarshaler) conflow.LoggerContext
- func (c *Context) RawJSON(key string, b []byte) conflow.LoggerContext
- func (c *Context) Stack() conflow.LoggerContext
- func (c *Context) Str(key, val string) conflow.LoggerContext
- func (c *Context) Strs(key string, vals []string) conflow.LoggerContext
- func (c *Context) Time(key string, t time.Time) conflow.LoggerContext
- func (c *Context) Times(key string, t []time.Time) conflow.LoggerContext
- func (c *Context) Timestamp() conflow.LoggerContext
- func (c *Context) Uint(key string, i uint) conflow.LoggerContext
- func (c *Context) Uint8(key string, i uint8) conflow.LoggerContext
- func (c *Context) Uint16(key string, i uint16) conflow.LoggerContext
- func (c *Context) Uint32(key string, i uint32) conflow.LoggerContext
- func (c *Context) Uint64(key string, i uint64) conflow.LoggerContext
- func (c *Context) Uints(key string, i []uint) conflow.LoggerContext
- func (c *Context) Uints8(key string, i []uint8) conflow.LoggerContext
- func (c *Context) Uints16(key string, i []uint16) conflow.LoggerContext
- func (c *Context) Uints32(key string, i []uint32) conflow.LoggerContext
- func (c *Context) Uints64(key string, i []uint64) conflow.LoggerContext
- type Event
- func (e *Event) AnErr(key string, err error) conflow.LogEvent
- func (e *Event) Array(key string, arr conflow.LogArrayMarshaler) conflow.LogEvent
- func (e *Event) Bool(key string, b bool) conflow.LogEvent
- func (e *Event) Bools(key string, b []bool) conflow.LogEvent
- func (e *Event) Bytes(key string, val []byte) conflow.LogEvent
- func (e *Event) Caller() conflow.LogEvent
- func (e *Event) Dict(key string, dict conflow.LogEvent) conflow.LogEvent
- func (e *Event) Discard() conflow.LogEvent
- func (e *Event) Dur(key string, d time.Duration) conflow.LogEvent
- func (e *Event) Durs(key string, d []time.Duration) conflow.LogEvent
- func (e *Event) EmbedObject(obj conflow.LogObjectMarshaler) conflow.LogEvent
- func (e *Event) Enabled() bool
- func (e *Event) Err(err error) conflow.LogEvent
- func (e *Event) Errs(key string, errs []error) conflow.LogEvent
- func (e *Event) Fields(fields map[string]interface{}) conflow.LogEvent
- func (e *Event) Float32(key string, f float32) conflow.LogEvent
- func (e *Event) Float64(key string, f float64) conflow.LogEvent
- func (e *Event) Floats32(key string, f []float32) conflow.LogEvent
- func (e *Event) Floats64(key string, f []float64) conflow.LogEvent
- func (e *Event) Hex(key string, val []byte) conflow.LogEvent
- func (e *Event) ID(key string, val conflow.ID) conflow.LogEvent
- func (e *Event) IPAddr(key string, ip net.IP) conflow.LogEvent
- func (e *Event) IPPrefix(key string, pfx net.IPNet) conflow.LogEvent
- func (e *Event) Int(key string, i int) conflow.LogEvent
- func (e *Event) Int8(key string, i int8) conflow.LogEvent
- func (e *Event) Int16(key string, i int16) conflow.LogEvent
- func (e *Event) Int32(key string, i int32) conflow.LogEvent
- func (e *Event) Int64(key string, i int64) conflow.LogEvent
- func (e *Event) Interface(key string, i interface{}) conflow.LogEvent
- func (e *Event) Ints(key string, i []int) conflow.LogEvent
- func (e *Event) Ints8(key string, i []int8) conflow.LogEvent
- func (e *Event) Ints16(key string, i []int16) conflow.LogEvent
- func (e *Event) Ints32(key string, i []int32) conflow.LogEvent
- func (e *Event) Ints64(key string, i []int64) conflow.LogEvent
- func (e *Event) MACAddr(key string, ha net.HardwareAddr) conflow.LogEvent
- func (e *Event) Msg(msg string)
- func (e *Event) Msgf(format string, v ...interface{})
- func (e *Event) Object(key string, obj conflow.LogObjectMarshaler) conflow.LogEvent
- func (e *Event) RawJSON(key string, b []byte) conflow.LogEvent
- func (e *Event) Stack() conflow.LogEvent
- func (e *Event) Str(key, val string) conflow.LogEvent
- func (e *Event) Strs(key string, vals []string) conflow.LogEvent
- func (e *Event) Time(key string, t time.Time) conflow.LogEvent
- func (e *Event) TimeDiff(key string, t time.Time, start time.Time) conflow.LogEvent
- func (e *Event) Times(key string, t []time.Time) conflow.LogEvent
- func (e *Event) Timestamp() conflow.LogEvent
- func (e *Event) Uint(key string, i uint) conflow.LogEvent
- func (e *Event) Uint8(key string, i uint8) conflow.LogEvent
- func (e *Event) Uint16(key string, i uint16) conflow.LogEvent
- func (e *Event) Uint32(key string, i uint32) conflow.LogEvent
- func (e *Event) Uint64(key string, i uint64) conflow.LogEvent
- func (e *Event) Uints(key string, i []uint) conflow.LogEvent
- func (e *Event) Uints8(key string, i []uint8) conflow.LogEvent
- func (e *Event) Uints16(key string, i []uint16) conflow.LogEvent
- func (e *Event) Uints32(key string, i []uint32) conflow.LogEvent
- func (e *Event) Uints64(key string, i []uint64) conflow.LogEvent
- type Logger
- func (l *Logger) Array() conflow.LogArray
- func (l *Logger) Debug() conflow.LogEvent
- func (l *Logger) Error() conflow.LogEvent
- func (l *Logger) Fatal() conflow.LogEvent
- func (l *Logger) Info() conflow.LogEvent
- func (l *Logger) Log() conflow.LogEvent
- func (l *Logger) Panic() conflow.LogEvent
- func (l *Logger) Print(v ...interface{})
- func (l *Logger) Printf(format string, v ...interface{})
- func (l *Logger) Warn() conflow.LogEvent
- func (l *Logger) With() conflow.LoggerContext
- type ObjectMarshalerWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
func (*Array) MarshalLogArray ¶
func (*Array) MarshalZerologArray ¶
type ArrayMarshalerWrapper ¶
type ArrayMarshalerWrapper struct {
// contains filtered or unexported fields
}
func (*ArrayMarshalerWrapper) MarshalZerologArray ¶
func (a *ArrayMarshalerWrapper) MarshalZerologArray(arr *zerolog.Array)
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) Array ¶
func (c *Context) Array(key string, arr conflow.LogArrayMarshaler) conflow.LoggerContext
func (*Context) Caller ¶
func (c *Context) Caller() conflow.LoggerContext
func (*Context) CallerWithSkipFrameCount ¶
func (c *Context) CallerWithSkipFrameCount(skipFrameCount int) conflow.LoggerContext
func (*Context) EmbedObject ¶
func (c *Context) EmbedObject(obj conflow.LogObjectMarshaler) conflow.LoggerContext
func (*Context) Fields ¶
func (c *Context) Fields(fields map[string]interface{}) conflow.LoggerContext
func (*Context) Floats32 ¶
func (c *Context) Floats32(key string, f []float32) conflow.LoggerContext
func (*Context) Floats64 ¶
func (c *Context) Floats64(key string, f []float64) conflow.LoggerContext
func (*Context) Interface ¶
func (c *Context) Interface(key string, i interface{}) conflow.LoggerContext
func (*Context) MACAddr ¶
func (c *Context) MACAddr(key string, ha net.HardwareAddr) conflow.LoggerContext
func (*Context) Object ¶
func (c *Context) Object(key string, obj conflow.LogObjectMarshaler) conflow.LoggerContext
func (*Context) Stack ¶
func (c *Context) Stack() conflow.LoggerContext
func (*Context) Timestamp ¶
func (c *Context) Timestamp() conflow.LoggerContext
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) EmbedObject ¶
func (e *Event) EmbedObject(obj conflow.LogObjectMarshaler) conflow.LogEvent
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewConsoleLogger ¶
func NewDisabledLogger ¶
func NewDisabledLogger() *Logger
func (*Logger) With ¶
func (l *Logger) With() conflow.LoggerContext
type ObjectMarshalerWrapper ¶
type ObjectMarshalerWrapper struct {
// contains filtered or unexported fields
}
func (*ObjectMarshalerWrapper) MarshalZerologObject ¶
func (o *ObjectMarshalerWrapper) MarshalZerologObject(e *zerolog.Event)
Click to show internal directories.
Click to hide internal directories.