for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Subreality\Dilmun\Nabu\LoggerHandler;
/**
* Class System
*
* Simple log handler that writes to the system log using error_log.
* @package Subreality\Dilmun\Nabu\LoggerHandler
* @see error_log()
*/
class System implements HandlerInterface
{
public function __construct()
//No construction required!
}
* @return bool
public function initialize()
$initialize_status = error_log("Initalizing System logger.");
return $initialize_status;
* Writes to the configured PHP error logger.
* @param string $message Message to be written to PHP's system log
* @return bool Returns the status from the error_log function
public function write($message)
$write_status = error_log($message);
return $write_status;