lunatic / monolog-bunyan-formatter
Bunyan Formatter for Monolog
0.1
2016-02-19 05:17 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- monolog/monolog: ~1
- phpunit/phpunit: ~4.5
This package is not auto-updated.
Last update: 2025-01-04 20:41:50 UTC
README
About
The Bunyan formatter was ported from the Punyan project to support projects which already started with Monolog
Requirements
-
= PHP 5.3
- Composer
Installation
composer require lunatic/monolog-bunyan-formatter
Usage
use Monolog\Logger; use Monolog\Handler\StreamHandler; use Lunatic666\Monolog\Formatter\BunyanFormatter; $log = new Logger('demo'); $handler = new StreamHandler('php://stdout', Logger::INFO); $handler->setFormatter(new BunyanFormatter()); $log->pushHandler($handler); $log->info('Hello, Mr. Bunyan', array('link' => 'https://en.wikipedia.org/wiki/Paul_Bunyan'));