PHP code example of logentries / logentries-monolog-handler

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

    

logentries / logentries-monolog-handler example snippets


$monolog->pushHandler(new Logentries\Handler\LogentriesHandler('YOUR_TOKEN'));

$monolog = new Logger('TestLog');
$monolog->pushHandler(new LogentriesHandler('YOUR_TOKEN'));
$monolog->addWarning('This is a warning logging message');