- Parameters:
-
| re | POSIX extended regular expression to match |
| tag | tag for later matching of counts |
From this point until the end of the test function, if any code emits a message to
syslog
which matches the given regular expression, a counter will be incremented and no other action will be taken. The counts can be retrieved by calling
np_syslog_count
. Note that
tag does not need to be unique; in fact always passing 0 is reasonable.