Selaa lähdekoodia

docs(logger): add missing inline docs

Javier Provecho Fernandez 8 vuotta sitten
vanhempi
commit
484acfc303
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      logger.go

+ 3 - 0
logger.go

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