include/SugarSearchEngine/Elastic/Elastica/Log.php

Show: inherited
Table of Contents

Elastica log object

Author
Nicolas Ruflin  
Category
Xodoa  
Package
Elastica  

\Elastica_Log

Package: Elastica

Elastica log object

Author
Nicolas Ruflin  
Category
Xodoa  

Properties

Propertyprotectedstring  $_lastMessage= ''''

Last logged message
Default value''Details
Type
string
Propertyprotectedstring|bool  $_log= 'false'

Log path or true if enabled

Default valuefalseDetails
Type
string | bool

Methods

methodpublic__construct( \Elastica_Client $client ) : void

Inits log object. Checks if logging is enabled for the given client

Parameters
Name Type Description
$client \Elastica_Client
methodprotected_convertRequest( \Elastica_Request $request ) : string

Converts a request to a log message

Parameters
Name Type Description
$request \Elastica_Request
Returns
Type Description
string Request log message
methodpublicgetLastMessage( ) : string

Returns
Type Description
string Last logged message
methodpubliclog( string | \Elastica_Request $message ) : void

Parameters
Name Type Description
$message string | \Elastica_Request
methodpublicsetLog( bool | string $log ) : \Elastica_Log

Parameters
Name Type Description
$log bool | string

Enables log or sets log path

Returns
Type Description
\Elastica_Log
Documentation was generated by DocBlox 0.18.1.