docs(logger): add missing inline docs

This commit is contained in:
Javier Provecho Fernandez 2017-07-02 17:05:21 +02:00
parent 114b71868a
commit 484acfc303
1 changed files with 3 additions and 0 deletions

View File

@ -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()