Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NsqHook ¶
type NsqHook struct {
// contains filtered or unexported fields
}
NsqHook is a logrus hook for nsq
func NewAsyncNsqHook ¶
func NewAsyncNsqHook(client *nsq.Producer, host, topic string, level logrus.Level) (*NsqHook, error)
NewAsyncNsqHook creates new hook with asynchronous log. client - nsq producer client host - host of system topic - name of nsqd level - log level index - name of the index in ElasticSearch
func NewNsqHook ¶
NewNsqHook creates new hook. client - nsq producer client host - host of system topic - name of nsqd level - log level
Click to show internal directories.
Click to hide internal directories.