Ejemplo n.º 1
0
 public static function showError($code = NULL, $message = NULL, $file = NULL, $line = NULL, $context = null)
 {
     //Oraculum::Load('Logs');
     $filecode = NULL;
     $report = '<h1>' . $message . '</h1>';
     $report .= '<strong>Error Code:</strong> #' . $code . '<br />';
     $report .= '<strong>Source File:</strong> ' . $file . ' <strong>line ' . $line . '</strong><br />';
     $report .= '<h3>Backtrace</h3>';
     $report = '<div style=\'float:left;text-align:left;\'>' . $report . '</div>';
     //echo $report;
     Logs::alert($report);
 }