\ElasticaLog

Elastica log object.

Summary

Methods
Properties
Constants
__construct()
log()
setLog()
getLastMessage()
No public properties found
No constants found
No protected methods found
$_log
$_lastMessage
N/A
No private methods found
No private properties found
N/A

Properties

$_log

$_log : string|boolean

Log path or true if enabled.

Type

string|boolean

$_lastMessage

$_lastMessage : string

Last logged message.

Type

string — Last logged message

Methods

__construct()

__construct(  $log = '') 

Inits log object.

Parameters

$log

log()

log(mixed  $level, string  $message, array  $context = array()) : null|void

Log a message.

Parameters

mixed $level
string $message
array $context

Returns

null|void

setLog()

setLog(boolean|string  $log) : $this

Enable/disable log or set log path.

Parameters

boolean|string $log

Enables log or sets log path

Returns

$this

getLastMessage()

getLastMessage() : string

Return last logged message.

Returns

string —

Last logged message