findUUID: Finds a specific UUID in logged events

Description Usage Arguments Value Examples

View source: R/logTools.R

Description

findUUID returns the event blocks that contains mentions of a requested UUID from the log files found in a given directory.

Usage

1
findUUID(uuid, logDir, ext = "\\.log$", recursive = TRUE)

Arguments

uuid

a universally unique identifier (UUID). Checked for valid format.

logDir

the directory path in which to search the logfiles. Defaults to the path component of getOption("rete.logfile").

ext

file extension regex pattern. Defaults to "\.log$".

recursive

Whether to descend into subdirectories. Defaults to TRUE.

Value

character() if uuid is not found in the log files. Otherwise, a vector with one complete event block per element, which has the filename that conteined the event attaches as a names() attribute.

Examples

1
2
3
4
## Not run: 
NULL

## End(Not run)

hyginn/ekplektoR documentation built on May 17, 2019, 9:16 p.m.