Puberty commit

This commit is contained in:
2017-10-29 23:06:41 +01:00
commit 34034b5223
63 changed files with 16011 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package log
import (
"github.com/Sirupsen/logrus"
)
// F is short for "fields".
type F map[string]interface{}
// WithFields is an entry function for logging.
func WithFields(f F) *logrus.Entry {
return logrus.WithFields(logrus.Fields(f))
}
// Logger returns a logger instance.
func Logger() *logrus.Logger {
return logrus.StandardLogger()
}