PHP code example of ycanga / central-logger

1. Go to this page and download the library: Download ycanga/central-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/ */

    

ycanga / central-logger example snippets

bash
php artisan vendor:publish --provider="ycanga\CentralLogger\CentralLoggerServiceProvider" --tag="config"
bash 
LOG_CHANNEL=central_logger
LOG_ENDPOINT=[YOUR-CENTRAL-LOGGER-SERVER-ENDPOINT]/api/log
LOG_API_KEY=[YOUR-PROJECT-API-KEY]