Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 207 Bytes
package worker
import (
"github.com/onrik/logrus/filename"
log "github.com/sirupsen/logrus"
)
//Init adds log filename hook
func Init() {
filenameHook := filename.NewHook()
log.AddHook(filenameHook)
}
You can’t perform that action at this time.