PHP code example of innmind / logger

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

    

innmind / logger example snippets


use function Innmind\Logger\bootstrap;
use Innmind\Url\Url;

$logger = bootstrap(
    'myApp',
    Url::of('file://'.__DIR__.'/var/log.txt'),
    Url::of('sentry://[email protected]/project-id'),
);

$concrete = $logger();
$fingersCrossed = $logger('error');