Blame view

main.go 431 Bytes
ad8e9dd2a   Marko Tikvić   added middleware ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  package webutility
  
  import (
  	"fmt"
  
  	"git.to-net.rs/marko.tikvic/gologger"
  )
  
  var logger *gologger.Logger
  var reqLogger *gologger.Logger
  
  func init() {
  	var err error
  	logger, err = gologger.New("metadata", gologger.MaxLogSize100KB)
  	if err != nil {
  		fmt.Printf("webutility: %s
  ", err.Error())
  	}
  	reqLogger, err = gologger.New("http", gologger.MaxLogSize5MB)
  	if err != nil {
  		fmt.Printf("webutility: %s
  ", err.Error())
  	}
  }