package
1.0.62
Repository: https://github.com/pschlump/gintools.git
Documentation: pkg.go.dev

# README

Combined Logging

based on both ginzap and gin's default logging - this is a combo logger.

# Functions

CustomRecoveryWithZap returns a gin.HandlerFunc (middleware) with a custom recovery handler that recovers from any panics and logs requests using uber-go/zap.
DisableConsoleColor disables color output in the console.
ForceConsoleColor force color output in the console.
Logger instances a Logger middleware that will write the logs to gin.DefaultWriter.
LoggerWithFormatter instance a Logger middleware with the specified log format function.
RecoveryWithZap returns a gin.HandlerFunc (middleware) that recovers from any panics and logs requests using uber-go/zap.
XLog returns a gin.HandlerFunc (middleware) that logs requests using uber-go/zap.
XLogWithConfig returns a gin.HandlerFunc using configs.

# Structs

Config is config setting for XLog.
LogFormatterParams is the structure any formatter will be handed when time to log comes.
LoggerConfig defines the config for Logger middleware.

# Type aliases

No description provided by the author
LogFormatter gives the signature of the formatter function passed to LoggerWithFormatter.