This library can re-format json log to Google Kubernetes Engine format
Version | Build Status |
---|---|
master |
Open a command console, enter your project directory and execute the following command to download the latest stable version:
composer require macpaw/monolog-gke-formatter
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use MacPaw\MonologGkeFormatter\GkeFormatter;
$handler = new StreamHandler('php://stdout');
$handler->setFormatter(new GkeFormatter());