package main import ( "github.com/sirupsen/logrus" ) func main() { log := logrus.New() log.SetLevel(logrus.DebugLevel) log.WithFields(logrus.Fields{ "animal": "walrus", "size": 10, }).Debugf("A %s is just %d inches long", "walrus", 10) }In this example, we have created a new instance of the logrus logger and set its log level to debug. We then call the Debugf function on the logger's entry, passing in a string format and any variables to be interpolated. The resulting log message will include the string formation preceeded with debug level information. Overall, the logrus package is an excellent choice for any Go project which requires comprehensive logging capabilities.