log(__FILE__, $requestMethod); $logger->log(__FILE__, "GET-Variabeles:"); while ( list($key, $value) = each($_GET) ) { $logger->log(__FILE__, $key . " : " . $value);; } $logger->log(__FILE__, "POST-Variabeles:"); while ( list($key, $value) = each($_POST) ) { $logger->log(__FILE__, $key . " : " . $value);; } $logger->log(__FILE__,"Redirect-URL:".$_SERVER["REDIRECT_URL"]); // call implementation try { $control = new LohnControl(); $control->doIt(); } catch (Exception $e) { $logger->logException(__FILE__, $e); echo "Error occurred!"; }