Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultFormat = "2006-01-02T15:04:05.999Z0700"
)
Variables ¶
This section is empty.
Functions ¶
func Client ¶
func Client(opts ...Option) middleware.Middleware
Client is an client logging middleware.
func Server ¶
func Server(opts ...Option) middleware.Middleware
Server is an client logging middleware.
Types ¶
type Option ¶ added in v1.0.14
type Option func(o *Options)
Option is the option for the logger.
func WithDisabled ¶ added in v1.0.14
WithDisabled set disabled metrics.
func WithHandler ¶ added in v1.0.14
WithHandler sets the handler
func WithLogger ¶ added in v1.0.14
WithLogger sets the logger
func WithSlowThreshold ¶ added in v1.0.14
WithSlowThreshold sets the slow threshold.
func WithTimeFormat ¶ added in v1.0.14
WithTimeFormat sets the format of the time
Click to show internal directories.
Click to hide internal directories.