Documentation ¶
Index ¶
- func All(entry *domain.Entry) bool
- func And(filterA func(entry *domain.Entry) bool, filterB func(entry *domain.Entry) bool) func(entry *domain.Entry) bool
- func Category(entry *domain.Entry) []string
- func Contains(value string, extractor func(entry *domain.Entry) []string) func(entry *domain.Entry) bool
- func Equals(value string, extractor func(entry *domain.Entry) []string) func(entry *domain.Entry) bool
- func Exception(entry *domain.Entry) []string
- func Filter(in <-chan *domain.Entry, out chan<- *domain.Entry, ...)
- func Level(entry *domain.Entry) []string
- func Matches(expression string, extractor func(entry *domain.Entry) []string) func(entry *domain.Entry) bool
- func Message(entry *domain.Entry) []string
- func Negate(filter func(entry *domain.Entry) bool) func(entry *domain.Entry) bool
- func Or(filterA func(entry *domain.Entry) bool, filterB func(entry *domain.Entry) bool) func(entry *domain.Entry) bool
- func Origin(entry *domain.Entry) []string
- func Stacktrace(entry *domain.Entry) []string
- func Time(entry *domain.Entry) []string
- type EntryFilter
- type Extractor
- type Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func And ¶
func And(filterA func(entry *domain.Entry) bool, filterB func(entry *domain.Entry) bool) func(entry *domain.Entry) bool
Returns a new filter that uses the "&&" operation against the two given filters
func Contains ¶
func Contains(value string, extractor func(entry *domain.Entry) []string) func(entry *domain.Entry) bool
Checks if the extracted value contains the given one
func Equals ¶
func Equals(value string, extractor func(entry *domain.Entry) []string) func(entry *domain.Entry) bool
Checks if the extracted value equals the given one
func Filter ¶
func Filter(in <-chan *domain.Entry, out chan<- *domain.Entry, filter func(entry *domain.Entry) bool, max int64)
Runs the filter function using entries from the "in" channel and passes the filtered entries to the "out" channel until the number of filtered entries reaches the given "max" number.
func Matches ¶
func Matches(expression string, extractor func(entry *domain.Entry) []string) func(entry *domain.Entry) bool
Checks if the extracted value matches the given regular expression
func Or ¶
func Or(filterA func(entry *domain.Entry) bool, filterB func(entry *domain.Entry) bool) func(entry *domain.Entry) bool
Returns a new filter that uses the "||" operation against the two given filters
func Stacktrace ¶
Extracts the stacktrace of a log entry
Types ¶
type EntryFilter ¶
Defines a filter capable of selecting log entries to be processed
Click to show internal directories.
Click to hide internal directories.