Versions in this module Expand all Collapse all v1 v1.0.0 Jun 10, 2019 Changes in this version + type Hook struct + AsyncBufferSize int + MaxReconnectRetries int + MaxSendRetries int + ReconnectBaseDelay time.Duration + ReconnectDelayMultiplier float64 + TimeFormat string + Timeout time.Duration + WaitUntilBufferFrees bool + func NewAsyncFilterHook() *Hook + func NewAsyncFilterHookWithPrefix(prefix string) *Hook + func NewAsyncHook(protocol, address, appName string) (*Hook, error) + func NewAsyncHookWithConn(conn net.Conn, appName string) (*Hook, error) + func NewAsyncHookWithFields(protocol, address, appName string, alwaysSentFields logrus.Fields) (*Hook, error) + func NewAsyncHookWithFieldsAndConn(conn net.Conn, appName string, alwaysSentFields logrus.Fields) (*Hook, error) + func NewAsyncHookWithFieldsAndConnAndPrefix(conn net.Conn, appName string, alwaysSentFields logrus.Fields, prefix string) (*Hook, error) + func NewAsyncHookWithFieldsAndPrefix(protocol, address, appName string, alwaysSentFields logrus.Fields, ...) (*Hook, error) + func NewFilterHook() *Hook + func NewFilterHookWithPrefix(prefix string) *Hook + func NewHook(protocol, address, appName string) (*Hook, error) + func NewHookWithConn(conn net.Conn, appName string) (*Hook, error) + func NewHookWithFields(protocol, address, appName string, alwaysSentFields logrus.Fields) (*Hook, error) + func NewHookWithFieldsAndConn(conn net.Conn, appName string, alwaysSentFields logrus.Fields) (*Hook, error) + func NewHookWithFieldsAndConnAndPrefix(conn net.Conn, appName string, alwaysSentFields logrus.Fields, prefix string) (*Hook, error) + func NewHookWithFieldsAndPrefix(protocol, address, appName string, alwaysSentFields logrus.Fields, ...) (*Hook, error) + func (h *Hook) Fire(entry *logrus.Entry) error + func (h *Hook) Levels() []logrus.Level + func (h *Hook) WithField(key string, value interface{}) + func (h *Hook) WithFields(fields logrus.Fields) + func (h *Hook) WithPrefix(prefix string) + type LogstashFormatter struct + TimestampFormat string + Type string + func (f *LogstashFormatter) Format(entry *logrus.Entry) ([]byte, error) + func (f *LogstashFormatter) FormatWithPrefix(entry *logrus.Entry, prefix string) ([]byte, error)