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

kaidenchen/yii2-resque-enhance dev-master 1.0 v0.2
ortnit/logger dev-master
imdbphp/imdbphp v4.1.1
instituteweb/typo3-cms 6.2.31
integer-net/solr-base 3.3.2 2.1.0 1.0.4
kaidenchen/yii2-resque-enhance dev-master 1.0 v0.2
intelogie/monolog dev-master 1.x-dev

Class usage:

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