LogProbe
MMO\admin\monitoring\probes · 1 symbol · generated 27 Oct 2026
LogProbe
LogProbe.php:20The errors a target's logs gained since the last look: each log file is read from where the previous reading stopped (its size then), so an error is counted once, the collection it appeared in -- not at every collection while it is in the last lines. A file smaller than last time was rotated: it is read from its start.
- Namespace
MMO\admin\monitoring\probes- Extends
- aProbe
- See
$filesare globs on the target's server,{folder}being the target's folder and{name},{database}and itsvarswhat they are in deploy.json. A line is an error when it matches$errors, fatal when it also matches,$fatal(lowercaseawkregexes: the line is lowercased first).
Index
| DESCRIPTION | ||
| KIND | ||
| NAME | ||
| SAFE | what a glob may hold: nothing a shell would do anything with but expand * and ? | |
| SAFE_PATTERN | what a pattern may hold, for awk | |
| errors | ||
| fatal | ||
| files | ||
| keep | ||
| maxBytes | ||
| globs($target) | ||
| parse($output, $reading, $previous) | ||
| probe($subject, $reading, $previous) | ||
| script($target, $previous) |
Constants5
DESCRIPTION
KIND
NAME
SAFE
what a glob may hold: nothing a shell would do anything with but expand * and ?
SAFE_PATTERN
what a pattern may hold, for awk
Properties5
errors
- Type
- string
fatal
- Type
- string
files
- Type
- array
keep
- Type
- int
maxBytes
- Type
- int
Methods4
globs($target)
LogProbe.php:51parse($output, $reading, $previous)
LogProbe.php:88probe($subject, $reading, $previous)
LogProbe.php:45script($target, $previous)
LogProbe.php:61Inherited members (16)
| Constants | Declared by | Description | |
|---|---|---|---|
SERVER | aProbe | a probe of servers | |
TARGET | aProbe | a probe of targets: the sites of the project, one per client |
| Methods | Declared by | Description | |
|---|---|---|---|
appliesTo($subject) | aProbe | ||
collect($subject, $previous, $time) | aProbe | Look at a subject, never throwing: whatever goes wrong is in the reading. | |
debugName() | aProbe | ||
failure($e) | aProbe | ||
needsShell() | aProbe | ||
Number($value) | aProbe | ||
Percent($part, $whole) | aProbe | ||
run($subject, $script) | aProbe | Run a script on the subject, stopped after $timeout seconds where timeout exists (a webspace may lack it). | |
Sections($output) | aProbe | ||
shell($subject) | aProbe | ||
__construct($options, $hub) | aProbe |