grep -v added.
This commit is contained in:
+19
-5
@@ -220,17 +220,29 @@ Writes all entries to the current output port in the same colon-separated
|
||||
format used by the display and file destinations.
|
||||
}
|
||||
|
||||
@defproc[(sl-store-grep-message [store any/c] [regexp regexp?]) any/c]{
|
||||
@defproc[(sl-store-grep-message [store any/c] [regexp regexp?] [#:invert? invert? boolean? #f]) any/c]{
|
||||
|
||||
Returns a store containing entries whose message matches @racket[regexp].
|
||||
When @racket[invert?] is true, entries matching the filter are excluded instead.
|
||||
}
|
||||
|
||||
@defproc[(sl-store-grep-topic [store any/c]
|
||||
[topic-or-regexp (or/c symbol? regexp?)])
|
||||
[topic-filter
|
||||
(or/c symbol?
|
||||
regexp?
|
||||
(listof (or/c symbol? regexp?)))]
|
||||
[#:invert? invert? boolean? #f])
|
||||
any/c]{
|
||||
|
||||
With a symbol, returns entries whose topic is exactly that symbol. With a
|
||||
regular expression, matches against the string form of the topic.
|
||||
regular expression, matches against the string form of the topic. A list
|
||||
selects entries matching any listed symbol or regular expression. When
|
||||
@racket[invert?] is true, entries matching the filter are excluded instead.
|
||||
|
||||
@racketblock[
|
||||
(sl-store-grep-topic logs '(webview webview-backend))
|
||||
(sl-store-grep-topic logs 'webview-backend #:invert? #t)
|
||||
]
|
||||
}
|
||||
|
||||
@defproc[(sl-store-grep-level [store any/c]
|
||||
@@ -254,7 +266,8 @@ matching level.
|
||||
}
|
||||
|
||||
@defproc[(sl-store-grep [store any/c]
|
||||
[value (or/c symbol? regexp?)])
|
||||
[value (or/c symbol? regexp?)]
|
||||
[#:invert? invert? boolean? #f])
|
||||
any/c]{
|
||||
|
||||
Performs a combined search.
|
||||
@@ -263,7 +276,8 @@ When @racket[value] is a log-level symbol, the result contains entries at that
|
||||
level or a more severe level. Any other symbol is treated as an exact topic.
|
||||
A regular expression is matched against both topic and message. If that same
|
||||
regular expression also identifies a log level, entries below that level are
|
||||
excluded.
|
||||
excluded. When @racket[invert?] is true, matching entries are excluded, similar
|
||||
to @tt{grep -v}.
|
||||
}
|
||||
|
||||
@defproc[(sl-store-tail [store any/c]
|
||||
|
||||
Reference in New Issue
Block a user