This commit is contained in:
wangchuxiao
2023-03-13 10:14:02 +08:00
parent c7a8536278
commit 04068d25cb
4 changed files with 3 additions and 13 deletions
-6
View File
@@ -23,12 +23,6 @@ func (f *fileHook) Levels() []logrus.Level {
return logrus.AllLevels
}
//func (f *fileHook) Fire(entry *logrus.Entry) error {
// entry.Map["FilePath"] = findCaller(6)
// utils.GetSelfFuncName()
// return nil
//}
func (f *fileHook) Fire(entry *logrus.Entry) error {
var s string
_, file, line, _ := runtime.Caller(8)