Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLogFormat = errors.New("non [] formated value found") ErrInvalidLogLevel = errors.New("in valid log level") )
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Err error TS time.Time Level zapcore.Level Caller string Msg string Data []LogKV Processed bool // flag about this entry is processed by some processor }
Entry contains log data from parsers.
func (Entry) SearchData ¶
SearchData returns the corresponding Value in Data if key matches.
type ZapTextParser ¶
type ZapTextParser struct {
// contains filtered or unexported fields
}
ZapTextParser parses zap text format log line data.
func (*ZapTextParser) Err ¶
func (p *ZapTextParser) Err() error
func (*ZapTextParser) ParseLine ¶
func (p *ZapTextParser) ParseLine(line []byte) Entry
ParseLine do the parsing procedure.
func (*ZapTextParser) String ¶
func (p *ZapTextParser) String() string
Click to show internal directories.
Click to hide internal directories.