zerolog

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Bool

func (a *Array) Bool(b bool) conflow.LogArray

func (*Array) Bytes

func (a *Array) Bytes(val []byte) conflow.LogArray

func (*Array) Dur

func (a *Array) Dur(d time.Duration) conflow.LogArray

func (*Array) Err

func (a *Array) Err(err error) conflow.LogArray

func (*Array) Float32

func (a *Array) Float32(f float32) conflow.LogArray

func (*Array) Float64

func (a *Array) Float64(f float64) conflow.LogArray

func (*Array) Hex

func (a *Array) Hex(val []byte) conflow.LogArray

func (*Array) ID

func (a *Array) ID(val conflow.ID) conflow.LogArray

func (*Array) IPAddr

func (a *Array) IPAddr(ip net.IP) conflow.LogArray

func (*Array) IPPrefix

func (a *Array) IPPrefix(pfx net.IPNet) conflow.LogArray

func (*Array) Int

func (a *Array) Int(i int) conflow.LogArray

func (*Array) Int8

func (a *Array) Int8(i int8) conflow.LogArray

func (*Array) Int16

func (a *Array) Int16(i int16) conflow.LogArray

func (*Array) Int32

func (a *Array) Int32(i int32) conflow.LogArray

func (*Array) Int64

func (a *Array) Int64(i int64) conflow.LogArray

func (*Array) Interface

func (a *Array) Interface(i interface{}) conflow.LogArray

func (*Array) MACAddr

func (a *Array) MACAddr(ha net.HardwareAddr) conflow.LogArray

func (*Array) MarshalLogArray

func (a *Array) MarshalLogArray(conflow.LogArray)

func (*Array) MarshalZerologArray

func (a *Array) MarshalZerologArray(*zerolog.Array)

func (*Array) Object

func (*Array) Str

func (a *Array) Str(val string) conflow.LogArray

func (*Array) Time

func (a *Array) Time(t time.Time) conflow.LogArray

func (*Array) Uint

func (a *Array) Uint(i uint) conflow.LogArray

func (*Array) Uint8

func (a *Array) Uint8(i uint8) conflow.LogArray

func (*Array) Uint16

func (a *Array) Uint16(i uint16) conflow.LogArray

func (*Array) Uint32

func (a *Array) Uint32(i uint32) conflow.LogArray

func (*Array) Uint64

func (a *Array) Uint64(i uint64) conflow.LogArray

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) AnErr

func (c *Context) AnErr(key string, err error) conflow.LoggerContext

func (*Context) Array

func (*Context) Bool

func (c *Context) Bool(key string, b bool) conflow.LoggerContext

func (*Context) Bools

func (c *Context) Bools(key string, b []bool) conflow.LoggerContext

func (*Context) Bytes

func (c *Context) Bytes(key string, val []byte) conflow.LoggerContext

func (*Context) Caller

func (c *Context) Caller() conflow.LoggerContext

func (*Context) CallerWithSkipFrameCount

func (c *Context) CallerWithSkipFrameCount(skipFrameCount int) conflow.LoggerContext

func (*Context) Dict

func (c *Context) Dict(key string, dict conflow.LogEvent) conflow.LoggerContext

func (*Context) Dur

func (*Context) Durs

func (c *Context) Durs(key string, d []time.Duration) conflow.LoggerContext

func (*Context) EmbedObject

func (*Context) Err

func (c *Context) Err(err error) conflow.LoggerContext

func (*Context) Errs

func (c *Context) Errs(key string, errs []error) conflow.LoggerContext

func (*Context) Fields

func (c *Context) Fields(fields map[string]interface{}) conflow.LoggerContext

func (*Context) Float32

func (c *Context) Float32(key string, f float32) conflow.LoggerContext

func (*Context) Float64

func (c *Context) Float64(key string, f float64) 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) Hex

func (c *Context) Hex(key string, val []byte) conflow.LoggerContext

func (*Context) ID

func (c *Context) ID(key string, val conflow.ID) conflow.LoggerContext

func (*Context) IPAddr

func (c *Context) IPAddr(key string, ip net.IP) conflow.LoggerContext

func (*Context) IPPrefix

func (c *Context) IPPrefix(key string, pfx net.IPNet) conflow.LoggerContext

func (*Context) Int

func (c *Context) Int(key string, i int) conflow.LoggerContext

func (*Context) Int8

func (c *Context) Int8(key string, i int8) conflow.LoggerContext

func (*Context) Int16

func (c *Context) Int16(key string, i int16) conflow.LoggerContext

func (*Context) Int32

func (c *Context) Int32(key string, i int32) conflow.LoggerContext

func (*Context) Int64

func (c *Context) Int64(key string, i int64) conflow.LoggerContext

func (*Context) Interface

func (c *Context) Interface(key string, i interface{}) conflow.LoggerContext

func (*Context) Ints

func (c *Context) Ints(key string, i []int) conflow.LoggerContext

func (*Context) Ints8

func (c *Context) Ints8(key string, i []int8) conflow.LoggerContext

func (*Context) Ints16

func (c *Context) Ints16(key string, i []int16) conflow.LoggerContext

func (*Context) Ints32

func (c *Context) Ints32(key string, i []int32) conflow.LoggerContext

func (*Context) Ints64

func (c *Context) Ints64(key string, i []int64) conflow.LoggerContext

func (*Context) Logger

func (c *Context) Logger() conflow.Logger

func (*Context) MACAddr

func (c *Context) MACAddr(key string, ha net.HardwareAddr) conflow.LoggerContext

func (*Context) Object

func (*Context) RawJSON

func (c *Context) RawJSON(key string, b []byte) conflow.LoggerContext

func (*Context) Stack

func (c *Context) Stack() conflow.LoggerContext

func (*Context) Str

func (c *Context) Str(key, val string) conflow.LoggerContext

func (*Context) Strs

func (c *Context) Strs(key string, vals []string) conflow.LoggerContext

func (*Context) Time

func (c *Context) Time(key string, t time.Time) conflow.LoggerContext

func (*Context) Times

func (c *Context) Times(key string, t []time.Time) conflow.LoggerContext

func (*Context) Timestamp

func (c *Context) Timestamp() conflow.LoggerContext

func (*Context) Uint

func (c *Context) Uint(key string, i uint) conflow.LoggerContext

func (*Context) Uint8

func (c *Context) Uint8(key string, i uint8) conflow.LoggerContext

func (*Context) Uint16

func (c *Context) Uint16(key string, i uint16) conflow.LoggerContext

func (*Context) Uint32

func (c *Context) Uint32(key string, i uint32) conflow.LoggerContext

func (*Context) Uint64

func (c *Context) Uint64(key string, i uint64) conflow.LoggerContext

func (*Context) Uints

func (c *Context) Uints(key string, i []uint) conflow.LoggerContext

func (*Context) Uints8

func (c *Context) Uints8(key string, i []uint8) conflow.LoggerContext

func (*Context) Uints16

func (c *Context) Uints16(key string, i []uint16) conflow.LoggerContext

func (*Context) Uints32

func (c *Context) Uints32(key string, i []uint32) conflow.LoggerContext

func (*Context) Uints64

func (c *Context) Uints64(key string, i []uint64) conflow.LoggerContext

type Event

type Event struct {
	// contains filtered or unexported fields
}

func (*Event) AnErr

func (e *Event) AnErr(key string, err error) conflow.LogEvent

func (*Event) Array

func (*Event) Bool

func (e *Event) Bool(key string, b bool) conflow.LogEvent

func (*Event) Bools

func (e *Event) Bools(key string, b []bool) conflow.LogEvent

func (*Event) Bytes

func (e *Event) Bytes(key string, val []byte) conflow.LogEvent

func (*Event) Caller

func (e *Event) Caller() conflow.LogEvent

func (*Event) Dict

func (e *Event) Dict(key string, dict conflow.LogEvent) conflow.LogEvent

func (*Event) Discard

func (e *Event) Discard() conflow.LogEvent

func (*Event) Dur

func (e *Event) Dur(key string, d time.Duration) conflow.LogEvent

func (*Event) Durs

func (e *Event) Durs(key string, d []time.Duration) conflow.LogEvent

func (*Event) EmbedObject

func (e *Event) EmbedObject(obj conflow.LogObjectMarshaler) conflow.LogEvent

func (*Event) Enabled

func (e *Event) Enabled() bool

func (*Event) Err

func (e *Event) Err(err error) conflow.LogEvent

func (*Event) Errs

func (e *Event) Errs(key string, errs []error) conflow.LogEvent

func (*Event) Fields

func (e *Event) Fields(fields map[string]interface{}) conflow.LogEvent

func (*Event) Float32

func (e *Event) Float32(key string, f float32) conflow.LogEvent

func (*Event) Float64

func (e *Event) Float64(key string, f float64) conflow.LogEvent

func (*Event) Floats32

func (e *Event) Floats32(key string, f []float32) conflow.LogEvent

func (*Event) Floats64

func (e *Event) Floats64(key string, f []float64) conflow.LogEvent

func (*Event) Hex

func (e *Event) Hex(key string, val []byte) conflow.LogEvent

func (*Event) ID

func (e *Event) ID(key string, val conflow.ID) conflow.LogEvent

func (*Event) IPAddr

func (e *Event) IPAddr(key string, ip net.IP) conflow.LogEvent

func (*Event) IPPrefix

func (e *Event) IPPrefix(key string, pfx net.IPNet) conflow.LogEvent

func (*Event) Int

func (e *Event) Int(key string, i int) conflow.LogEvent

func (*Event) Int8

func (e *Event) Int8(key string, i int8) conflow.LogEvent

func (*Event) Int16

func (e *Event) Int16(key string, i int16) conflow.LogEvent

func (*Event) Int32

func (e *Event) Int32(key string, i int32) conflow.LogEvent

func (*Event) Int64

func (e *Event) Int64(key string, i int64) conflow.LogEvent

func (*Event) Interface

func (e *Event) Interface(key string, i interface{}) conflow.LogEvent

func (*Event) Ints

func (e *Event) Ints(key string, i []int) conflow.LogEvent

func (*Event) Ints8

func (e *Event) Ints8(key string, i []int8) conflow.LogEvent

func (*Event) Ints16

func (e *Event) Ints16(key string, i []int16) conflow.LogEvent

func (*Event) Ints32

func (e *Event) Ints32(key string, i []int32) conflow.LogEvent

func (*Event) Ints64

func (e *Event) Ints64(key string, i []int64) conflow.LogEvent

func (*Event) MACAddr

func (e *Event) MACAddr(key string, ha net.HardwareAddr) conflow.LogEvent

func (*Event) Msg

func (e *Event) Msg(msg string)

func (*Event) Msgf

func (e *Event) Msgf(format string, v ...interface{})

func (*Event) Object

func (e *Event) Object(key string, obj conflow.LogObjectMarshaler) conflow.LogEvent

func (*Event) RawJSON

func (e *Event) RawJSON(key string, b []byte) conflow.LogEvent

func (*Event) Stack

func (e *Event) Stack() conflow.LogEvent

func (*Event) Str

func (e *Event) Str(key, val string) conflow.LogEvent

func (*Event) Strs

func (e *Event) Strs(key string, vals []string) conflow.LogEvent

func (*Event) Time

func (e *Event) Time(key string, t time.Time) conflow.LogEvent

func (*Event) TimeDiff

func (e *Event) TimeDiff(key string, t time.Time, start time.Time) conflow.LogEvent

func (*Event) Times

func (e *Event) Times(key string, t []time.Time) conflow.LogEvent

func (*Event) Timestamp

func (e *Event) Timestamp() conflow.LogEvent

func (*Event) Uint

func (e *Event) Uint(key string, i uint) conflow.LogEvent

func (*Event) Uint8

func (e *Event) Uint8(key string, i uint8) conflow.LogEvent

func (*Event) Uint16

func (e *Event) Uint16(key string, i uint16) conflow.LogEvent

func (*Event) Uint32

func (e *Event) Uint32(key string, i uint32) conflow.LogEvent

func (*Event) Uint64

func (e *Event) Uint64(key string, i uint64) conflow.LogEvent

func (*Event) Uints

func (e *Event) Uints(key string, i []uint) conflow.LogEvent

func (*Event) Uints8

func (e *Event) Uints8(key string, i []uint8) conflow.LogEvent

func (*Event) Uints16

func (e *Event) Uints16(key string, i []uint16) conflow.LogEvent

func (*Event) Uints32

func (e *Event) Uints32(key string, i []uint32) conflow.LogEvent

func (*Event) Uints64

func (e *Event) Uints64(key string, i []uint64) conflow.LogEvent

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewConsoleLogger

func NewConsoleLogger(level zerolog.Level) *Logger

func NewDisabledLogger

func NewDisabledLogger() *Logger

func NewLogger

func NewLogger(logger zerolog.Logger) *Logger

func (*Logger) Array

func (l *Logger) Array() conflow.LogArray

func (*Logger) Debug

func (l *Logger) Debug() conflow.LogEvent

func (*Logger) Error

func (l *Logger) Error() conflow.LogEvent

func (*Logger) Fatal

func (l *Logger) Fatal() conflow.LogEvent

func (*Logger) Info

func (l *Logger) Info() conflow.LogEvent

func (*Logger) Log

func (l *Logger) Log() conflow.LogEvent

func (*Logger) Panic

func (l *Logger) Panic() conflow.LogEvent

func (*Logger) Print

func (l *Logger) Print(v ...interface{})

func (*Logger) Printf

func (l *Logger) Printf(format string, v ...interface{})

func (*Logger) Warn

func (l *Logger) Warn() conflow.LogEvent

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL