PHP code example of mumsnet / mn-monolog

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

    

mumsnet / mn-monolog example snippets


if (getenv('PAPERTRAIL_HOSTNAME') !== FALSE) {
    $app->configureMonologUsing(function ($monolog) {
        $papertrailHandler = new PapertrailHandler(
            getenv('PAPERTRAIL_HOSTNAME'),
            getenv('PAPERTRAIL_PORT'),
            getenv('SITE_HOSTNAME'),
            getenv('PAPERTRAIL_PROGRAM_NAME'));
        $monolog->pushHandler($papertrailHandler);
        return $monolog;
    });
}