SilverStripe Search

SearchLogger
in package

AbstractYes

Table of Contents

Properties

$client  : mixed
$options  : array<string|int, mixed>

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

$options

protected array<string|int, mixed> $options = []

Default options

Methods

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
throws
HTTPException
throws
ValidationException
todo

fix up for generic use

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
throws
HTTPException
throws
ValidationException

findOrCreateLog()

Attempt to find, otherwise create, a log object

private findOrCreateLog( $type, array<string|int, mixed> $filter,  $error) : void
Parameters
$type :
$filter : array<string|int, mixed>
$error :
Tags
throws
ValidationException

        
On this page

Search results