承接 atrapalo/monolog-elasticsearch 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

atrapalo/monolog-elasticsearch

最新稳定版本:v1.0.1

Composer 安装命令:

composer require atrapalo/monolog-elasticsearch

包简介

A Monolog handler and formatter that makes use of the elasticsearch/elasticsearch package

README 文档

README

This extremely simple library provide of an elasticsearch handler and formatter which makes use of the official PHP Elasticsearch client.

Build Status Scrutinizer Code Quality

Usage

<?php

use Atrapalo\Monolog\Handler\ElasticsearchHandler;
use Elasticsearch\ClientBuilder;
use Monolog\Logger;

$logger = new Logger('application');
$logger->pushHandler(
    new ElasticsearchHanler($client, ['index' => 'logs', 'type' => 'log'])
);

Installation

This library can be installed through composer

composer require atrapalo/monolog-elasticsearch

Requirements

In order to make use of this library you will need

  • Monolog
  • An elasticsearch instance

Contributing

See CONTRIBUTING file.

Running the Tests

php bin/phpunit

Credits

Contributor Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See CODE_OF_CONDUCT.md file.

License

Monolog-Elasticsearch handler is released under the MIT License. See the bundled LICENSE file for details.

统计信息

  • 总下载量: 22.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 11
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-01