SearchLogger
in package
AbstractYes
Table of Contents
Properties
Methods
- __construct() : mixed
- logMessage() : void
- Log the given message and dump it out.
- saveLog() : void
- Save the latest Search errors to the log
- findOrCreateLog() : void
- Attempt to find, otherwise create, a log object
Properties
$client
protected
mixed
$client
$options
protected
array<string|int, mixed>
$options
= []
Default options
Methods
__construct()
public
abstract __construct() : mixed
logMessage()
Log the given message and dump it out.
public
static logMessage(string $type, string $message) : void
Also boot the Log to get the latest errors from Search
Parameters
- $type : string
- $message : string
Tags
saveLog()
Save the latest Search errors to the log
public
saveLog(string $type, array<string|int, mixed> $logs) : void
Parameters
- $type : string
- $logs : array<string|int, mixed>
Tags
findOrCreateLog()
Attempt to find, otherwise create, a log object
private
findOrCreateLog( $type, array<string|int, mixed> $filter, $error) : void