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