Moved 400, 500 Logging function to appstrap.php.