PHP code example of yaro / jarboe-log-viewer

1. Go to this page and download the library: Download yaro/jarboe-log-viewer 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/ */

    

yaro / jarboe-log-viewer example snippets


// config/logging.php

return [
   //...
  'channels' => [
    'stack' => [
      'driver' => 'stack',
      'name' => 'channel-name',
      'channels' => ['daily', 'slack'],
    ],

    'daily' => [
        'driver' => 'daily',
        'path' => storage_path('logs/laravel.log'),
        'level' => 'debug',
        'days' => 7,
    ],

    'slack' => [
      'driver' => 'slack',
      'url' => env('LOG_SLACK_WEBHOOK_URL'),
      'level' => 'critical',
    ],
    //...
];
bash
php artisan vendor:publish --provider="Yaro\JarboeLogViewer\ServiceProvider"