我正在尝试从漂亮的Logrus(对调试非常有帮助)迁移我的应用程序并引入Uber日志框架Zap。使用Logrus,我可以只初始化记录器一次并从其他Go文件中重用它,例如:packagemainimport(//Printfilenameonlogfilename"github.com/onrik/logrus/filename"//Veryniceloglibrarylog"github.com/sirupsen/logrus")funcmain(){//====SETLOGGINGFormatter:=new(log.TextFormatter)Formatter.Timestamp