Example #1
0
 private function addLogItem($msg, $logType)
 {
     if (!$this->logFileName) {
         return null;
     }
     $logItem = array("type" => $logType, "msg" => $msg);
     $logData = microtime(true) . " | " . $this->createLogItemStr($logItem);
     file_put_contents($this->logFileName, $logData, FILE_APPEND);
     $e = new Exception();
     $this->lastTrace = ApplicationException::getFileTrace($e->getTrace());
     $this->lastQuery = $msg;
 }
Example #2
0
File: index.php Project: saiber/www
function dump_livecart_trace(Exception $e)
{
    echo "<br/><strong>" . get_class($e) . " ERROR:</strong> " . $e->getMessage() . "\n\n";
    echo "<br /><strong>FILE TRACE:</strong><br />\n\n";
    echo ApplicationException::getFileTrace($e->getTrace());
    exit;
}