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 extends AbstractHandler
{
* @return bool
public function initialize()
$initialize_status = error_log("Initializing 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)
$written = false;
if ($this->output_allowed) {
$written = error_log($message);
return $written;