Versions in this module Expand all Collapse all v3 v3.2.0 May 15, 2023 v3.0.5 Oct 23, 2019 Changes in this version + const ChunkSize + const StackTraceKey + var BufSize uint = 8192 + type CompressType int + const CompressGzip + const CompressZlib + const NoCompress + type GraylogHook struct + Extra map[string]interface{} + Host string + Level logrus.Level + func NewAsyncGraylogHook(addr string, extra map[string]interface{}) *GraylogHook + func NewGraylogHook(addr string, extra map[string]interface{}) *GraylogHook + func (hook *GraylogHook) Blacklist(b []string) + func (hook *GraylogHook) Fire(entry *logrus.Entry) error + func (hook *GraylogHook) Flush() + func (hook *GraylogHook) Levels() []logrus.Level + func (hook *GraylogHook) SetWriter(w *Writer) error + func (hook *GraylogHook) Writer() *Writer + type Message struct + Extra map[string]interface{} + Facility string + File string + Full string + Host string + Level int32 + Line int + Short string + TimeUnix float64 + Version string + func (m *Message) MarshalJSON() ([]byte, error) + func (m *Message) UnmarshalJSON(data []byte) error + type Reader struct + func NewReader(addr string) (*Reader, error) + func (r *Reader) Addr() string + func (r *Reader) Read(p []byte) (int, error) + func (r *Reader) ReadMessage() (*Message, error) + type Writer struct + CompressionLevel int + CompressionType CompressType + Facility string + func NewWriter(addr string) (*Writer, error) + func (w *Writer) WriteMessage(m *Message) (err error) Other modules containing this package github.com/LTD-Beget/logrus-graylog-hook