Return the given number of entries from the end of log file
This method is pagination aware.
Usage
// basic usage
$array = $log->getLines(string $name);
// usage with all arguments
$array = $log->getLines(string $name, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
name | string | Name of log |
options (optional) | array | Specify any of the following:
|
Return value
array
See Also
API reference based on ProcessWire core version 3.0.236