Commit ed367ddd15976cdf98ba8bc640219e11c6a400fd

Authored by Marko Tikvić
1 parent 28a6cc60c9
Exists in master

moved gologger

Showing 1 changed file with 4 additions and 5 deletions   Show diff stats
middleware/middleware.go
... ... @@ -4,12 +4,11 @@ import (
4 4 "net/http"
5 5 "time"
6 6  
7   - "git.to-net.rs/marko.tikvic/gologger"
8   -
9 7 web "git.to-net.rs/marko.tikvic/webutility"
  8 + "git.to-net.rs/marko.tikvic/webutility/logger"
10 9 )
11 10  
12   -var httpLogger *gologger.Logger
  11 +var httpLogger *logger.Logger
13 12  
14 13 func SetAccessControlHeaders(h http.HandlerFunc) http.HandlerFunc {
15 14 return func(w http.ResponseWriter, req *http.Request) {
... ... @@ -57,12 +56,12 @@ func ParseMultipartForm(h http.HandlerFunc) http.HandlerFunc {
57 56 }
58 57  
59 58 // SetLogger ...
60   -func SetLogger(logger *gologger.Logger) {
  59 +func SetLogger(logger *logger.Logger) {
61 60 httpLogger = logger
62 61 }
63 62  
64 63 func StartLogging(filename, dir string) (err error) {
65   - if httpLogger, err = gologger.New(filename, dir, gologger.MaxLogSize1MB); err != nil {
  64 + if httpLogger, err = logger.New(filename, dir, logger.MaxLogSize1MB); err != nil {
66 65 return err
67 66 }
68 67 return nil
... ...