PHP code example of corpsoft / logging

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

    

corpsoft / logging example snippets


Corpsoft\Logging\LoggingServiceProvider::class,

php artisan vendor:publish --tag=logging

 LOG_CS_ENABLE_JOB_FAILED_TRACKING=
 LOG_CS_ENABLE_QUERYING_LONG_TRACKING=
 LOG_CS_ENABLE_GLOBAL_EXCEPTION_TRACKING=
 LOG_CS_MAX_QUERYING_TIME_TRACKING=

'enable_in_environment'  // Which environment enabled. Default enabled 'production'

'enable_job_failed_tracking' // Includes Tracking of Failing Job. Default true
'enable_querying_for_longer_time_tracking' // Includes Tracking of long query. Default true
'enable_global_exception_tracking' // Includes global tracking of 500 errors Default true

'max_querying_time_tracking' // The maximum query threshold at which this will be logged (in milliseconds), the default is 1000