Skip to content

Commit eadcd49

Browse files
committed
Improve docs for test/matches and test/logged?
1 parent e62fcd9 commit eadcd49

File tree

1 file changed

+6
-2
lines changed
  • src/main/clojure/clojure/tools/logging

1 file changed

+6
-2
lines changed

src/main/clojure/clojure/tools/logging/test.clj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@
227227

228228

229229
(defn matches
230-
"Returns matching log entries, otherwise nil.
230+
"Returns matching log entries, otherwise nil. See match-logger-ns?,
231+
match-level?, match-throwable?, and match-message? for the default matching
232+
behavior applied to the given args.
231233
232234
Must be invoked within a context where *stateful-log* is bound to an instance
233235
of StatefulLog containing MatchableLogEntry items (e.g., inside with-log)."
@@ -239,7 +241,9 @@
239241

240242

241243
(defn logged?
242-
"Returns true if the log contains matching entries.
244+
"Returns true if the log contains matching entries. See match-logger-ns?,
245+
match-level?, match-throwable?, and match-message? for the default matching
246+
behavior applied to the given args.
243247
244248
Must be invoked within a context where *stateful-log* is bound to an instance
245249
of StatefulLog containing MatchableLogEntry items (e.g., inside with-log)."

0 commit comments

Comments
 (0)