MCPcopy
hub / github.com/gin-gonic/gin / Logger

Function Logger

logger.go:224–226  ·  view source on GitHub ↗

Logger instances a Logger middleware that will write the logs to gin.DefaultWriter. By default, gin.DefaultWriter = os.Stdout.

()

Source from the content-addressed store, hash-verified

222// Logger instances a Logger middleware that will write the logs to gin.DefaultWriter.
223// By default, gin.DefaultWriter = os.Stdout.
224func Logger() HandlerFunc {
225 return LoggerWithConfig(LoggerConfig{})
226}
227
228// LoggerWithFormatter instance a Logger middleware with the specified log format function.
229func LoggerWithFormatter(f LogFormatter) HandlerFunc {

Callers 1

DefaultFunction · 0.85

Calls 1

LoggerWithConfigFunction · 0.85

Tested by

no test coverage detected