Documentation
¶
Index ¶
- func DefaultLogRowHandle(value *freedom.LogRow) bool
- func NewBusFilter() func(freedom.Worker)
- func NewRecover() context.Handler
- func NewRequest(cfg *RequestLoggerConfig) context.Handler
- func NewRequestLogger(traceIDName string, loggerConf ...*RequestLoggerConfig) func(context.Context)
- func NewTrace(traceIDName string) func(context.Context)
- type RequestLoggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLogRowHandle ¶ added in v1.7.16
func NewRequest ¶ added in v1.1.0
func NewRequest(cfg *RequestLoggerConfig) context.Handler
func NewRequestLogger ¶ added in v1.6.9
func NewRequestLogger(traceIDName string, loggerConf ...*RequestLoggerConfig) func(context.Context)
NewRequestLogger .
Types ¶
type RequestLoggerConfig ¶ added in v1.7.16
type RequestLoggerConfig struct { IP bool Query bool MessageContextKeys []string MessageHeaderKeys []string RequestRawBody bool Title string // contains filtered or unexported fields }
RequestLoggerConfig contains the options for the logger middleware can be optionally be passed to the `New`.
func DefaultConfig ¶ added in v1.1.0
func DefaultConfig() *RequestLoggerConfig
DefaultConfig returns a default config that have all boolean fields to true except `Columns`, all strings are empty, LogFunc and Skippers to nil as well.
Click to show internal directories.
Click to hide internal directories.