README ¶ logger-go Accelbyte logger library usage logger := InitLogger(serviceName, realm) logger.Errorf("err") // output: time="2020-04-03T16:37:45+07:00" level=error msg=err file="logger_test.go:21" func=logger-go.TestServiceNameLogged realm=def service=abc Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func InitLogger(serviceName string, realm string) *logrus.Entry type ContextHook func (hook ContextHook) Fire(entry *logrus.Entry) error func (hook ContextHook) Levels() []logrus.Level Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func InitLogger ¶ func InitLogger( serviceName string, realm string, ) *logrus.Entry Types ¶ type ContextHook ¶ type ContextHook struct { Data logrus.Fields } func (ContextHook) Fire ¶ func (hook ContextHook) Fire(entry *logrus.Entry) error func (ContextHook) Levels ¶ func (hook ContextHook) Levels() []logrus.Level Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.