PHP code example of camuthig / laravel-segmentedsyslog

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

    

camuthig / laravel-segmentedsyslog example snippets


  composer 

  'providers' => array(
    ...
    // 'Illuminate\Log\LogServiceProvider',
  	'Camuthig\SegmentedSyslog\SegmentedSyslogServiceProvider',
  	...
  ),
  

  Log::useSegmentedSyslog();
  

  public function useSegmentedSyslog(
        $name = 'laravel',
        $level = 'debug',
        $length = 1024,
        $facility = LOG_USER,
        $bubble = true,
        $logopts = LOG_PID
    )