1
0
Fork 0
cmdui/backend/log/log.go

19 lines
348 B
Go
Raw Normal View History

2017-10-29 22:06:41 +00:00
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()
}