1. Go to this page and download the library: Download ami-praha/ai-logger library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Illuminate\Support\Facades\Log;
Log::channel('ai-logger')->info('Hello from AI Logger', ['extra_data' => 'test']);
// Other log levels work similarly
Log::channel('ai-logger')->error('Something went wrong.', [
'exception' => 'Some exception info',
]);
Log::channel('ai-logger')->info('Testing AI Logger');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.