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

psr/log dev-master 1.1.2
View more packages
rkr/amazon-pay-sdk-php 2.x-dev
goragod/kotchasan dev-master
kaidenchen/yii2-resque-enhance dev-master 1.0 v0.2
lionsad/service_container 1.0.0-beta5
psr-php7/log dev-master 1.0.0
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
kaidenchen/yii2-resque-enhance dev-master 1.0 v0.2
resque/yii2-resque dev-master

Class usage:

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