logger: add C as From alias

This commit is contained in:
Adphi 2021-11-28 09:33:32 +01:00
parent aaf2aa3964
commit 819b3c9ce6

View File

@ -18,6 +18,8 @@ func init() {
defaultLogger = &logger{fl: logrus.New()}
}
var C = From
func SetDefault(logger Logger) {
mu.Lock()
defer mu.Unlock()