Property | Type | Description | |
---|---|---|---|
$_lastMessage | Last logged message. | ||
$_log | string | boolean | Log path or true if enabled. |
Method | Description | |
---|---|---|
__construct ( $log = '' ) | Inits log object. | |
getLastMessage ( ) : string | Return last logged message. | |
log ( mixed $level, string $message, array $context = [] ) : null | void | Log a message. | |
setLog ( boolean | string $log ) | Enable/disable log or set log path. |
public getLastMessage ( ) : string | ||
return | string | Last logged message |