Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶ added in v0.0.3
func Logger(cfg LogConfig) gin.HandlerFunc
Types ¶
type Config ¶ added in v0.0.3
type Config struct { LogConfig LogConfig MetricsConfig MetricsConfig }
func DefaultConfig ¶ added in v0.0.3
func DefaultConfig() Config
type LogConfig ¶ added in v0.0.3
type LogConfig struct { // Logger instance to output request logs. Logger logr.Logger // Regex used to filter out request logs. PathFilter *regexp.Regexp // Should request logs should include latency. IncludeLatency bool // Should request logs should include client IP. IncludeClientIP bool // Context keys to include in request log. IncludeKeys []string }
type MetricsConfig ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.