Crawls through log files and reports jobs with lines matching the pattern
.
See showLog
for an example.
Usage
grepLogs(
ids = NULL,
pattern,
ignore.case = FALSE,
fixed = FALSE,
reg = getDefaultRegistry()
)
Arguments
- ids
[
data.frame
orinteger
]
Adata.frame
(ordata.table
) with a column named “job.id”. Alternatively, you may also pass a vector of integerish job ids. If not set, defaults to the return value offindStarted
. Invalid ids are ignored.- pattern
[
character(1L)
]
Regular expression or string (seefixed
).- ignore.case
[
logical(1L)
]
IfTRUE
the match will be performed case insensitively.- fixed
[
logical(1L)
]
IfFALSE
(default),pattern
is a regular expression and a fixed string otherwise.- reg
[
Registry
]
Registry. If not explicitly passed, uses the default registry (seesetDefaultRegistry
).
Value
[data.table
] with columns “job.id” and “message”.