123456789101112131415161718192021222324 |
- package config
- import (
- kitlog "github.com/go-kit/kit/log"
- "log"
- "os"
- )
- var Logger *log.Logger
- var KitLogger kitlog.Logger
- func init() {
- Logger = log.New(os.Stderr, "", log.LstdFlags)
- KitLogger = kitlog.NewLogfmtLogger(os.Stderr)
- KitLogger = kitlog.With(KitLogger, "ts", kitlog.DefaultTimestampUTC)
- KitLogger = kitlog.With(KitLogger, "caller", kitlog.DefaultCaller)
- }
|