log(__FILE__, $requestMethod); $logger->log(__FILE__, "GET-Variabeles:"); foreach( $_GET as $key => $value ) { $logger->log(__FILE__, $key . " : " . $value);; } $logger->log(__FILE__, "POST-Variabeles:"); foreach( $_POST as $key => $value ) { if (is_array($value)) $value = join(",", $value); $logger->log(__FILE__, $key . " : " . $value);; } $logger->log(__FILE__,"Redirect-URL:".$_SERVER["REDIRECT_URL"]); // call implementation try { Control::doIt(); } catch (Exception $e) { $logger->logException(__FILE__, $e); echo "Error occurred!"; }