Documentation ¶ Overview ¶ Package logger is based on: https://github.com/gin-contrib/logger Index ¶ func New(port string, config ...Config) gin.HandlerFunc type Config type Route Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(port string, config ...Config) gin.HandlerFunc New initializes the logging middleware. Types ¶ type Config ¶ type Config struct { Stdout *zerolog.Logger Stderr *zerolog.Logger // UTC a boolean stating whether to use UTC time zone or local. UTC bool Routes []Route SkipPath []string } Config defines the config for logger middleware type Route ¶ type Route struct { Method string RelativePath string LogPayload bool } Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.