PHP code example of datenkraft / monolog-gke-formatter

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

    

datenkraft / monolog-gke-formatter example snippets


use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Datenkraft\MonologGkeFormatter\GkeFormatter;

$handler = new StreamHandler('php://stdout');
$handler->setFormatter(new GkeFormatter());