Documentation
¶
Index ¶
Constants ¶
View Source
const ( FactoryJSON = "json" FactoryRegex = "regex" FactoryRfc3339Nano = "rfc3339Nano" FactoryJSONCustom = "json_custom" FactoryCRI = "cri" )
View Source
const ( DefBufferSize = 4 << 10 // 4K MaxRecordSize = pool.MaxRecordSize )
Variables ¶
View Source
var ( ErrFormatDetect = errors.New("fail to detect log format") ErrNoTimestamp = errors.New("no timestamp delimeter") ErrNoStreamType = errors.New("no stream delimeter") ErrNoTag = errors.New("no tag delimeter") ErrUnknownStream = errors.New("unknown stream type") ErrParseTimestamp = errors.New("fail parse timestamp") ErrJsonTimeField = errors.New("fail to extract time field") ErrJsonUnmarshal = errors.New("fail JSON unmarshal") ErrMatchTimestamp = errors.New("fail match timestamp") )
Functions ¶
This section is empty.
Types ¶
type FactoryI ¶
func NewJsonCustomFactory ¶
func NewJsonFactory ¶
func NewJsonFactory() FactoryI
func NewRegexFactory ¶
func NewRegexFactory(expTime string, cb TimeFormatCbT) (FactoryI, error)
type TimeFormatCbT ¶
func WithTimeFormat ¶
func WithTimeFormat(fmtTime string) TimeFormatCbT
Click to show internal directories.
Click to hide internal directories.