PHP code example of xanpena / amtega-logging

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

    

xanpena / amtega-logging example snippets



    'single' => [
        'driver' => 'single',
        'path'   => storage_path('logs/laravel.log'),
        'level'  => env('LOG_LEVEL', 'debug'),
    ],

    'daily' => [
        'driver' => 'daily',
        'tap'    => [Xanpena\AmtegaLogging\AmtegaFormatter::class],
        'path'   => storage_path('logs/laravel-daily.log'),
        'level'  => env('LOG_LEVEL', 'debug'),
        'days'   => 14,
    ],