Browse Source

Update README.md

Volodymyr Tkach 2 years ago
parent
commit
52cb0857ce
1 changed files with 11 additions and 0 deletions
  1. 11 0
      README.md

+ 11 - 0
README.md

@@ -155,3 +155,14 @@ func RespondAsMethodNotAllowed(w http.ResponseWriter, r *http.Request)
 func SessionStart(w http.ResponseWriter, r *http.Request) (*session.Session, error)
 func SetLanguageCookie(w http.ResponseWriter, r *http.Request) error
 ```
+
+## utils/http/logger
+
+Used for write logs, `LogRequests` can be used in handlers chain
+
+```go
+func LogError(format string, a ...any)
+func LogInfo(format string, a ...any)
+func LogInternalError(err error)
+func LogRequests(handler http.Handler) http.Handler
+```