include/SugarSearchEngine/Elastic/Elastica/Log.php
Elastica log object
- Author
- Nicolas Ruflin
- Category
- Xodoa
- Package
- Elastica
\Elastica_Log
Package: Elastica
Elastica log object
- Author
- Nicolas Ruflin
- Category
- Xodoa
Properties
Methods
__construct(
\Elastica_Client $client
)
:
void
Inits log object. Checks if logging is enabled for the given client
Parameters
Name | Type | Description |
---|---|---|
$client | \Elastica_Client |
_convertRequest(
\Elastica_Request $request
)
:
string
Converts a request to a log message
Parameters
Returns
Name | Type | Description |
---|---|---|
$request | \Elastica_Request |
Type | Description |
---|---|
string | Request log message |
log(
string | \Elastica_Request $message
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$message | string | \Elastica_Request |
setLog(
bool | string $log
)
:
\Elastica_Log
Parameters
Returns
Name | Type | Description |
---|---|---|
$log | bool | string | Enables log or sets log path |
Type | Description |
---|---|
\Elastica_Log |