Skip to content

zhl11b/logrus-hook-caller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

logrus-hook-caller

Go Report Card

make logrus display linenum and filename no matter use logrus.Debugf("xx") or logrus.Withfield("xx","xx").Debugf("xx")

cation!! because Debugf or Debugln's call deepth are diferent with Debug.so you have to use Debugf instead Debug, then you can get right caller.
注意!!因为Debuf,Debugln和Debug的调用深度不一样。所以需要使用Debugf取代Debug,那么就可以正确的显示行了。

About

hook for logrus make it display linenum

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages