dev-master
9999999-devBunyan Formatter for Monolog
MIT
The Requires
- php >=5.3.0
The Development Requires
0.1
0.1.0.0Bunyan Formatter for Monolog
MIT
The Requires
- php >=5.3.0
The Development Requires
Bunyan Formatter for Monolog
The Bunyan formatter was ported from the Punyan project to support projects which already started with Monolog, (*1)
composer require lunatic/monolog-bunyan-formatter
, (*2)
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'));
Bunyan Formatter for Monolog
MIT
Bunyan Formatter for Monolog
MIT