mirror of https://github.com/gin-gonic/gin.git
docs(logger): add missing inline docs
This commit is contained in:
parent
114b71868a
commit
484acfc303
|
@ -25,14 +25,17 @@ var (
|
|||
disableColor = false
|
||||
)
|
||||
|
||||
// DisableConsoleColor disables color output in the console
|
||||
func DisableConsoleColor() {
|
||||
disableColor = true
|
||||
}
|
||||
|
||||
// ErrorLogger returns a handlerfunc for any error type
|
||||
func ErrorLogger() HandlerFunc {
|
||||
return ErrorLoggerT(ErrorTypeAny)
|
||||
}
|
||||
|
||||
// ErrorLoggerT returns a handlerfunc for a given error type
|
||||
func ErrorLoggerT(typ ErrorType) HandlerFunc {
|
||||
return func(c *Context) {
|
||||
c.Next()
|
||||
|
|
Loading…
Reference in New Issue