Example #1
0
 /**
  * Logs a record by passing it to the registered handlers.
  * @param \CoreXEngine\Util\Logger\Log $log record to pass to the handlers
  * @return \CoreXEngine\Util\Logger\Logger
  */
 public function logRecord(Log $log)
 {
     foreach ($this->handler as $handler) {
         if ($handler->accepts($log->getLevel())) {
             $handler->handle($log);
         }
     }
     return $this;
 }