Documentation ¶
Overview ¶
@Time : 2019-11-04 9:31 @Author : zr
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FrontKafka ¶
func NewLogstashFrontKafka ¶
func NewLogstashFrontKafka(config *LogstashFrontKafkaConfig) *FrontKafka
func (*FrontKafka) GetLogrusHook ¶
func (f *FrontKafka) GetLogrusHook() Hook
func (*FrontKafka) Log ¶ added in v1.3.1
func (f *FrontKafka) Log(entry *logrus.Entry)
type FrontStatus ¶
type FrontStatus int
const ( FrontStatusKafkaConnecting FrontStatus FrontStatusKafkaConnected FrontStatusKafkaReconnecting FrontStatusKafkaDisconnected FrontStatusStopping FrontStatusStopped )
type LogstashFrontKafkaConfig ¶
type LogstashFrontKafkaConfig struct { //应用名,用于创建ES索引 AppName string //连接Kafka失败时信息储存位置 FileLogPath string //trace字段预设值 TracePrefix string ZKHosts []string }
func NewLogstashFrontKafkaConfig ¶
func NewLogstashFrontKafkaConfig() *LogstashFrontKafkaConfig
Click to show internal directories.
Click to hide internal directories.