/** * 将日志加入到一个日志队列中,默认为logqueue * @param array $arrLogInfo * @param string $queue * @param string $queueId * @return TRUE */ function QLg($arrLogInfo, $queue = 'logqueue', $queueId = 'logqueue') { return Core\Logger::add($arrLogInfo, $queue, $queueId); }
public static function shutdown() { if (function_exists('app_shutdown')) { app_shutdown(); } if (($error = error_get_last()) && in_array($error['type'], array(E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_CORE_WARNING, E_COMPILE_WARNING))) { $errorFile = $error['file']; $code = ERROR_SYSTEM_CORE; $message = $error['message']; $errorLine = $error['line']; $trace = []; Core\Logger::error("Core", sprintf('error_file: %s; error_line: %s; code: %s ; msg: %s', $errorFile, $errorLine, $code, $message)); require_once __DIR__ . DS . 'view' . DS . 'error.php'; exit; } }