Enables creation of logs, logging of events, and management of logs.
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the
WireLog class also inherits all the methods and properties of: Wire.
|Record an error message in the error log (errors.txt)|
|Record an informational or 'success' message in the message log (messages.txt)|
$log->save(string $name, string $text)
|Save text to a named log|
|Record a warning message in the warnings log (warnings.txt)|
|Return given number of entries from end of log file, with each entry as an associative array of components|
|Get the full filename (including path) for the given log name|
|Return the given number of entries from the end of log file|
|Return array of all logs, sorted by name|
|Get the total number of entries present in the given log|
Additional methods and properties
In addition to the methods and properties above, WireLog also inherits the methods and properties of these classes:
API reference based on ProcessWire core version 3.0.66