承接 syntaxphoenix/monolog-opensearch-handler 相关项目开发

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

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

syntaxphoenix/monolog-opensearch-handler

最新稳定版本:2.0.0

Composer 安装命令:

composer require syntaxphoenix/monolog-opensearch-handler

包简介

OpenSearch handler for Monolog

README 文档

README

Contributors Stargazers Issues GPLv3 License


Logo

SyntaxPhoenix OpenSearchHandler for Monolog

Table of Contents

  1. About The Project
  2. Usage
  3. Roadmap
  4. Contributing
  5. License
  6. Contact

About The Project

The OpenSearchHandler for monolog adds a handler, that is able to send logs to a OpenSearch instance. If needed it can also get integrated with Symfony. The initial version is forked from geangontijo/monolog-opensearch-handler.

Built With

Usage

$logger = new \Monolog\Logger('application');
$logger->pushHandler(new \SyntaxPhoenix\MonologOpenSearchHandler\OpenSearchHandler(
    'http://localhost:9200',
    'username',
    'password',
    'index_name',
    Level::Debug,
    \OpenSearch\ClientBuilder::create()->setHosts([
        'http://localhost:9200'
    ])->build()
));

$logger->info('Hello World');

For usage with Symfony configure the handler within your services.yaml:

    SyntaxPhoenix\MonologOpenSearchHandler\OpenSearchHandler:
        arguments:
            $endpoint: 'opensearch:9200'
            $index: "index"
            $username: 'username'
            $password: 'password'
            $bubble: true

The handler can then be used within monolog.yaml:

monolog:
    handlers:
        main:
            handler: opensearchhandler
        opensearchhandler:
            type: service
            id: SyntaxPhoenix\MonologOpenSearchHandler\OpenSearchHandler

Installation

composer require syntaxphoenix/monolog-opensearch-handler

Monolog versions

Monolog v1 Monolog v2 Monolog v3
monolog-opensearch-handler v1
monolog-opensearch-handler v2

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GPLv3 License. See LICENSE for more information.

Contact

@SyntaxPhoenix - support@syntaxphoenix.com

Project Link: https://github.com/SyntaxPhoenix/monolog-opensearch-handler

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-25