diff --git a/pkg/log/log.go b/pkg/log/log.go index 5fa7cd3..97aecf6 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -34,11 +34,11 @@ var ( ) var ( - DebugLog *log.Logger - InfoLog *log.Logger - WarnLog *log.Logger - ErrLog *log.Logger - CritLog *log.Logger + DebugLog *log.Logger = log.New(DebugWriter, DebugPrefix, log.LstdFlags) + InfoLog *log.Logger = log.New(InfoWriter, InfoPrefix, log.LstdFlags|log.Lshortfile) + WarnLog *log.Logger = log.New(WarnWriter, WarnPrefix, log.LstdFlags|log.Lshortfile) + ErrLog *log.Logger = log.New(ErrWriter, ErrPrefix, log.LstdFlags|log.Llongfile) + CritLog *log.Logger = log.New(CritWriter, CritPrefix, log.LstdFlags|log.Llongfile) ) /* CONFIG */