Documentation ¶
Index ¶
- func Columnize(nowFormatted string, latency time.Duration, status, ip, method, path string, ...) string
- func DefaultConfig() loggerConfig
- func NewBusFilter() func(freedom.Worker)
- func NewRecover() context.Handler
- func NewRequest(cfg ...loggerConfig) context.Handler
- func NewRequestLogger(traceIDName string, body bool) func(context.Context)
- func NewTrace(traceIDName string) func(context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Columnize ¶ added in v1.1.0
func Columnize(nowFormatted string, latency time.Duration, status, ip, method, path string, message interface{}, headerMessage interface{}) string
Columnize formats the given arguments as columns and returns the formatted output, note that it appends a new line to the end.
func DefaultConfig ¶ added in v1.1.0
func DefaultConfig() loggerConfig
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.
func NewRequest ¶ added in v1.1.0
func NewRequestLogger ¶ added in v1.6.9
NewRequestLogger .
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.