grepLogs: Grep Log Files for a Pattern

Description Usage Arguments Value See Also

View source: R/Logs.R

Description

Crawls through log files and reports jobs with lines matching the pattern. See showLog for an example.

Usage

1
2
3
4
5
6
7
grepLogs(
  ids = NULL,
  pattern,
  ignore.case = FALSE,
  fixed = FALSE,
  reg = getDefaultRegistry()
)

Arguments

ids

[data.frame or integer]
A data.frame (or data.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 of findStarted. Invalid ids are ignored.

pattern

[character(1L)]
Regular expression or string (see fixed).

ignore.case

[logical(1L)]
If TRUE the match will be performed case insensitively.

fixed

[logical(1L)]
If FALSE (default), pattern is a regular expression and a fixed string otherwise.

reg

[Registry]
Registry. If not explicitly passed, uses the default registry (see setDefaultRegistry).

Value

[data.table] with columns “job.id” and “message”.

See Also

Other debug: getErrorMessages(), getStatus(), killJobs(), resetJobs(), showLog(), testJob()


batchtools documentation built on Jan. 14, 2021, 5:20 a.m.