Original post

So I’m following the examples on


where I just do:


But all this is logging is:

func=”github.com/sirupsen/logrus.(*Logger.Log” file=”C:<my go location>/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/logger.go:192″

This happens no matter what, whether I log it in main(), or other functions. How do I get it to show the function that called the logger? Ideally, I was hoping for something like:

func=”myfunc” file=”myFile.go”

Just me, or did someone run into this before as well?