*/ class LSlog_email extends LSlog_handler { // The configured email recipient private $recipient = null; /** * Constructor * * @param[in] $config array The handler configuration * * @retval void **/ public function __construct($config) { parent :: __construct($config); $this -> recipient = self :: getConfig('recipient'); } /** * Log a message * * @param[in] $level string The message level * @param[in] $message string The message * * @retval void **/ public function logging($level, $message) { if ($this -> recipient) return error_log($message, 1, $this -> recipient); return false; } }