Documentation ¶
Index ¶
- type AcceptAllPredicate
- type AcceptNothingPredicate
- type AfterPredicate
- type AllOfPredicate
- type AnyOfPredicate
- type BeforePredicate
- type ContainsPredicate
- type IsEmptyPredicate
- type IsNotEmptyPredicate
- type Level
- type LogEntry
- func (l *LogEntry) AssignValue(fieldName string, value string) error
- func (l *LogEntry) FieldAsString(fieldName string) (string, error)
- func (l *LogEntry) FieldAsTime(fieldName string) (time.Time, error)
- func (l *LogEntry) FieldValue(fieldName string) (fieldValue reflect.Value, actualFieldName string)
- func (l *LogEntry) IsTags(fieldName string) bool
- func (l *LogEntry) IsTimestamp(fieldName string) bool
- type MatchesPredicate
- type NoneOfPredicate
- type NotPredicate
- type Predicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptAllPredicate ¶
type AcceptAllPredicate struct{}
func (AcceptAllPredicate) Applies ¶
func (this AcceptAllPredicate) Applies(*LogEntry) bool
type AcceptNothingPredicate ¶
type AcceptNothingPredicate struct{}
func (AcceptNothingPredicate) Applies ¶
func (this AcceptNothingPredicate) Applies(*LogEntry) bool
type AfterPredicate ¶
func (AfterPredicate) Applies ¶
func (this AfterPredicate) Applies(logEntry *LogEntry) bool
type AllOfPredicate ¶
type AllOfPredicate struct{ SubPredicates []Predicate }
func (AllOfPredicate) Applies ¶
func (this AllOfPredicate) Applies(logEntry *LogEntry) bool
type AnyOfPredicate ¶
type AnyOfPredicate struct{ SubPredicates []Predicate }
func (AnyOfPredicate) Applies ¶
func (this AnyOfPredicate) Applies(logEntry *LogEntry) bool
type BeforePredicate ¶
func (BeforePredicate) Applies ¶
func (this BeforePredicate) Applies(logEntry *LogEntry) bool
type ContainsPredicate ¶
func (ContainsPredicate) Applies ¶
func (this ContainsPredicate) Applies(logEntry *LogEntry) bool
type IsEmptyPredicate ¶
type IsEmptyPredicate struct{ FieldName string }
func (IsEmptyPredicate) Applies ¶
func (this IsEmptyPredicate) Applies(logEntry *LogEntry) bool
type IsNotEmptyPredicate ¶
type IsNotEmptyPredicate struct{ IsEmptyPredicate }
func (IsNotEmptyPredicate) Applies ¶
func (this IsNotEmptyPredicate) Applies(logEntry *LogEntry) bool
type LogEntry ¶
type LogEntry struct { Timestamp time.Time Level Level Tags []string Message string Host string User string Thread string Process string Custom map[string]string }
func (*LogEntry) FieldValue ¶
func (*LogEntry) IsTimestamp ¶
type MatchesPredicate ¶
type MatchesPredicate struct { FieldName string GrokPattern string // contains filtered or unexported fields }
func (MatchesPredicate) Applies ¶
func (this MatchesPredicate) Applies(logEntry *LogEntry) bool
type NoneOfPredicate ¶
type NoneOfPredicate struct{ SubPredicates []Predicate }
func (NoneOfPredicate) Applies ¶
func (this NoneOfPredicate) Applies(logEntry *LogEntry) bool
type NotPredicate ¶
type NotPredicate struct{ SubPredicate Predicate }
func (NotPredicate) Applies ¶
func (this NotPredicate) Applies(logEntry *LogEntry) bool
Click to show internal directories.
Click to hide internal directories.