Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusLevel ¶
StatusLevel takes an HTTP status and returns an appropriate log level.
Types ¶
type HeadersLogObject ¶ added in v1.72.0
HeadersLogObject encodes an http.Header into a zap logging object.
func (HeadersLogObject) MarshalJSON ¶ added in v1.72.1
func (o HeadersLogObject) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshal.
func (HeadersLogObject) MarshalLogObject ¶ added in v1.72.0
func (o HeadersLogObject) MarshalLogObject(enc zapcore.ObjectEncoder) error
MarshalLogObject implements the zapcore.ObjectMarshaler interface.
type RequestQueryLogObject ¶ added in v1.72.0
RequestQueryLogObject encodes a URL query string into a zap logging object.
func (RequestQueryLogObject) MarshalJSON ¶ added in v1.72.1
func (o RequestQueryLogObject) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshal.
func (RequestQueryLogObject) MarshalLogObject ¶ added in v1.72.0
func (o RequestQueryLogObject) MarshalLogObject(enc zapcore.ObjectEncoder) error
MarshalLogObject implements the zapcore.ObjectMarshaler interface.
Click to show internal directories.
Click to hide internal directories.