main.go 431 Bytes
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\n", err.Error())
	}
	reqLogger, err = gologger.New("http", gologger.MaxLogSize5MB)
	if err != nil {
		fmt.Printf("webutility: %s\n", err.Error())
	}
}