1 package version 2 3 import ( 4 "path/filepath" 5 "runtime" 6 7 "github.com/p9c/p9/pkg/log" 8 ) 9 10 var F, E, W, I, D, T log.LevelPrinter 11 12 func init() { 13 _, file,_, _ := runtime.Caller(0) 14 verPath := filepath.Dir(file)+"/" 15 F, E, W, I, D, T = log.GetLogPrinterSet(log.AddLoggerSubsystem(verPath)) 16 } 17