diff --git a/middleware/middleware.go b/middleware/middleware.go index 2fd6840..500469b 100644 --- a/middleware/middleware.go +++ b/middleware/middleware.go @@ -4,12 +4,11 @@ import ( "net/http" "time" - "git.to-net.rs/marko.tikvic/gologger" - web "git.to-net.rs/marko.tikvic/webutility" + "git.to-net.rs/marko.tikvic/webutility/logger" ) -var httpLogger *gologger.Logger +var httpLogger *logger.Logger func SetAccessControlHeaders(h http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, req *http.Request) { @@ -57,12 +56,12 @@ func ParseMultipartForm(h http.HandlerFunc) http.HandlerFunc { } // SetLogger ... -func SetLogger(logger *gologger.Logger) { +func SetLogger(logger *logger.Logger) { httpLogger = logger } func StartLogging(filename, dir string) (err error) { - if httpLogger, err = gologger.New(filename, dir, gologger.MaxLogSize1MB); err != nil { + if httpLogger, err = logger.New(filename, dir, logger.MaxLogSize1MB); err != nil { return err } return nil