logger

package
v0.0.0-...-66b7006 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Any

func Any(key string, value interface{}) zapcore.Field

func Bool

func Bool(key string, val bool) zapcore.Field

func ByteString

func ByteString(key string, val []byte) zapcore.Field

func DevelopmentTimeEncoder

func DevelopmentTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

func Duration

func Duration(key string, val time.Duration) zapcore.Field

func Error

func Error(err error) zapcore.Field

func InitLogger

func InitLogger()

func Int

func Int(key string, val int) zapcore.Field

func NamedError

func NamedError(key string, err error) zapcore.Field

func NewLoggingResponseWriter

func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter

func Object

func Object(key string, val zapcore.ObjectMarshaler) zapcore.Field

func RequestLoggingHandler

func RequestLoggingHandler(next http.Handler) http.Handler

func Skip

func Skip() zapcore.Field

func String

func String(key string, val string) zapcore.Field

func Stringer

func Stringer(key string, val fmt.Stringer) zapcore.Field

func Time

func Time(key string, val time.Time) zapcore.Field

Types

This section is empty.

Jump to

Keyboard shortcuts

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