Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaLogrusHook ¶
type KafkaLogrusHook struct {
// contains filtered or unexported fields
}
KafkaLogrusHook is the primary struct
func NewKafkaLogrusHook ¶
func NewKafkaLogrusHook( levels []logrus.Level, formatter logrus.Formatter, brokers []string, defaultTopic string, injectHostname bool, tls *tls.Config) (*KafkaLogrusHook, error)
NewKafkaLogrusHook creates a new KafkaHook
func (*KafkaLogrusHook) Fire ¶
func (hook *KafkaLogrusHook) Fire(entry *logrus.Entry) error
Fire is required to implement the hook interface from logrus
func (*KafkaLogrusHook) Levels ¶
func (hook *KafkaLogrusHook) Levels() []logrus.Level
Levels is required to implement the hook interface from logrus
Click to show internal directories.
Click to hide internal directories.