Getting Started with Ease
Add the Logify Alert Client to the Application's Code
- Copy the Logify folder to your PHP project.
-
Use the code below to include the LoadHelper.php file to the PHP script you use to call the Logify API.
require_once('/Logify/LoadHelper.php');
-
Register the library autoloader by executing the following code:
spl_autoload_register(array("DevExpress\LoadHelper", "LoadModule"));
To command Logify Alert to automatically listen to uncaught exceptions and deliver crash reports, add the following code to your application's code. To initialize your application, use the API Key generated for it.
$client = LogifyAlertClient::get_instance();
$client->apiKey = 'SPECIFY_YOUR_API_KEY_HERE';
$client-> start_exceptions_handling();
That’s it! Your application is ready to report all unexpected crashes to DevExpress Logify.