Browse Source

docs(logger): add missing inline docs

Javier Provecho Fernandez 8 năm trước cách đây
mục cha
commit
484acfc303
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      logger.go

+ 3 - 0
logger.go

@@ -25,14 +25,17 @@ var (
 	disableColor = false
 	disableColor = false
 )
 )
 
 
+// DisableConsoleColor disables color output in the console
 func DisableConsoleColor() {
 func DisableConsoleColor() {
 	disableColor = true
 	disableColor = true
 }
 }
 
 
+// ErrorLogger returns a handlerfunc for any error type
 func ErrorLogger() HandlerFunc {
 func ErrorLogger() HandlerFunc {
 	return ErrorLoggerT(ErrorTypeAny)
 	return ErrorLoggerT(ErrorTypeAny)
 }
 }
 
 
+// ErrorLoggerT returns a handlerfunc for a given error type
 func ErrorLoggerT(typ ErrorType) HandlerFunc {
 func ErrorLoggerT(typ ErrorType) HandlerFunc {
 	return func(c *Context) {
 	return func(c *Context) {
 		c.Next()
 		c.Next()