PHP code example of karataserkan / log4yii

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

    

karataserkan / log4yii example snippets


<?= 'targets' => [
	[
      'class' => 'karataserkan\log4yii\HttpLogTarget',
      'levels' => ['info', 'error', 'warning'],
      'logVars' => ['_GET', '_POST', '_FILES'],
      'categories' => ['test'],
      'baseUrl' => 'http://url'
    ],
    [
      'class' => 'karataserkan\log4yii\StreamLogTarget',
      'levels' => ['info', 'error', 'warning'],
      'logVars' => ['_GET', '_POST', '_FILES'],
      'url' => 'php://stdout'
    ]
], 

php composer.phar