PHP code example of nsrosenqvist / soma-logger

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

    

nsrosenqvist / soma-logger example snippets


 return [
    'log' => [
        'debug' => storage_path('logs/debug.log'),
        'info' => storage_path('logs/info.log'),
        'error' => storage_path('logs/error.log')
    ],
];