Versions in this module Expand all Collapse all v0 v0.84.0 Aug 29, 2023 Changes in this version + func NewLineEndSplitFunc(re *regexp.Regexp, flushAtEOF bool, trimFunc trimFunc) bufio.SplitFunc + func NewLineStartSplitFunc(re *regexp.Regexp, flushAtEOF bool, trimFunc trimFunc) bufio.SplitFunc + func NewNewlineSplitFunc(enc encoding.Encoding, flushAtEOF bool, trimFunc trimFunc) (bufio.SplitFunc, error) + func SplitNone(maxLogSize int) bufio.SplitFunc + type Flusher struct + func (f *Flusher) Flushed() + func (f *Flusher) ShouldFlush() bool + func (f *Flusher) SplitFunc(splitFunc bufio.SplitFunc) bufio.SplitFunc + func (f *Flusher) UpdateDataChangeTime(length int) + type FlusherConfig struct + Period time.Duration + func NewFlusherConfig() FlusherConfig + func (c *FlusherConfig) Build() *Flusher + type Multiline struct + Force *Flusher + SplitFunc bufio.SplitFunc + type MultilineConfig struct + LineEndPattern string + LineStartPattern string + func NewMultilineConfig() MultilineConfig + func (c MultilineConfig) Build(enc encoding.Encoding, ...) (bufio.SplitFunc, error) + type Splitter struct + Decoder *decoder.Decoder + Flusher *Flusher + SplitFunc bufio.SplitFunc + type SplitterConfig struct + Encoding string + Flusher FlusherConfig + Multiline MultilineConfig + PreserveLeadingWhitespaces bool + PreserveTrailingWhitespaces bool + func NewSplitterConfig() SplitterConfig + func (c *SplitterConfig) Build(flushAtEOF bool, maxLogSize int) (*Splitter, error)