PHP code example of stellarwp / foundation-log

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

    

stellarwp / foundation-log example snippets


$this->container->bind(Dot::class, new Dot(

 declare(strict_types=1);

return [
	'log'             => [
		'level'    => $_ENV['APP_LOG_LEVEL'] ?? 'debug',
		'channel'  => $_ENV['APP_LOG_CHANNEL'] ?? 'null', // console, errorlog, stack (both console and errorlog) or null
		'channels' => [
			'errorlog' => [],
			'console'  => [
				'with' => [
					'stream' => 'php://stdout',
				],
			],
			'stack'    => [
				'with' => [
					'stream' => 'php://stdout',
				],
			],
		],
	],
];