PHP code example of pahanini / yii2-consolelog

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

    

pahanini / yii2-consolelog example snippets


return [
	'id' => 'app-console',
	'bootstrap' => ['log'],
	'components' => [
		'log' => [
			'targets' => [
				[
					'class' => 'pahanini\log\ConsoleTarget',
					'levels' => ['error', 'warning', 'trace'],
				]
			],
		],
	],
	'params' => $params,
];