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
* @todo Find some way to suppress this as needed
This check looks TODO comments that have been left in the code.
TODO
``TODO``s show that something is left unfinished and should be attended to.
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;
This check looks
TODOcomments that have been left in the code.``TODO``s show that something is left unfinished and should be attended to.