jsonlogformat

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FileFormatJSONLog is the constant for this special/sample file format.
	FileFormatJSONLog = "jsonlog"
)

Variables

This section is empty.

Functions

func IsErrLogReadingFailed

func IsErrLogReadingFailed(err error) bool

IsErrLogReadingFailed checks if an err is of ErrLogReadingFailed type.

func NewJSONLogFileFormat

func NewJSONLogFileFormat(schemaName string) fileformat.FileFormat

NewJSONLogFileFormat creates a new FileFormat for this special/sample jsonlog.

func NewReader

func NewReader(inputName string, src io.Reader, filterXPath string) (*reader, error)

NewReader creates an FormatReader for this sample jsonlog file format.

Types

type ErrLogReadingFailed

type ErrLogReadingFailed string

ErrLogReadingFailed indicates the reader fails to read out a complete non-corrupted log line. This is a fatal, non-continuable error.

func (ErrLogReadingFailed) Error

func (e ErrLogReadingFailed) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL