Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
func Logger(fileName string, maxdays int) gin.HandlerFunc
Logger is a middleware that will write the logs to gin.DefaultWriter By default gin.DefaultWriter = os.Stdout
func LoggerWithHide ¶
func LoggerWithHide(hideValues []string) gin.HandlerFunc
LoggerWithHide is a middleware that will hide the values of the given headers when logging Must specify all headers, password is not default here Default writer is used
func LoggerWithWriter ¶
func LoggerWithWriter(out io.Writer) gin.HandlerFunc
LoggerWithWriter is a middleware with the specified writer buffer. Example: os.Stdout, a file opened in write mode, a socket...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.