Description

写JSON格式 $app->register(new \Leaf\Provider\LogServiceProvider(), ['log.config' => ['formatter' => new \Monolog\Formatter\JsonFormatter()]]);

直接写到ElasticSearch //http://elastica.io // composer require ruflin/elastica $client = new \Elastica\Client(['servers' => [ ['host' => '192.168.88.162', 'port' => 9200], ]]);

$options = array( 'index' => 'testlog-' . @date('Y-m-d'), 'type' => 'testlog', ); $handler = new ElasticSearchHandler($client, $options);

$app->register(new \Leaf\Provider\LogServiceProvider(), ['log.config' => ['handlers' => [$handler]]]);

Type hierarchy

rkr/amazon-pay-sdk-php 2.x-dev
struggle-for-php/sfp-psalm-psr-log-plugin dev-master 0.2.0
typo3/cms 6.2.31
lionsad/service_container 1.0.0-beta5
x-fig/monolog dev-master 2.0.0 1.x-dev
yaoshanliang/monolog dev-master 1.20.1

Class usage:

This class is not referred by any other class/interface/traits in packagist packages.