Versions in this module Expand all Collapse all v0 v0.5.1 Mar 21, 2018 Changes in this version + func DefaultFormatter(fields logrus.Fields) logrus.Formatter + func New(w io.Writer, f logrus.Formatter) logrus.Hook v0.4.1 Sep 27, 2017 Changes in this version + type Hook struct + TimeFormat string + 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)