定制 map-ir/laravel-log-usage 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

map-ir/laravel-log-usage

最新稳定版本:0.2.4

Composer 安装命令:

composer require map-ir/laravel-log-usage

包简介

log usage service

README 文档

README

Latest Version on Packagist Total Downloads

kafka

elasticSearch

logstash

Installation

You can install the package via composer:

composer require map-ir/laravel-log-usage

laravel Installation

in laravel < 5.4 add this line to your config/app.php providers:

MapIr\LaravelLogUsage\LaravelLogUsageServiceProvider::class,

after install package in laravel run artisan for publish config file

php artisan vendor:publish --tag=config

After publish the package files you must open laravel-log-usage.php in config folder.

lumen Installation:

add package middleware in bootstrap/app.php.

 $app->middleware([
     \MapIr\LaravelLogUsage\Http\Middleware\LogUsageMiddleware::class
 ]);

copy package config directory vendor/map-ir/laravel-log-usage/config/logUsage.php to root folder alongside with app directory. update bootstrap/app.php by adding this line in Register Config Files section:

$app->configure('logUsage');

you can set the keys in your .env file

TOPIC="topic name for produce kafka"
BROKER_VERSION="version use broker"
KAFKA_MRIM="Topic metadata refresh interval in milliseconds broker"
REQUIRED_ACK="This field indicates how many acknowledgements the leader broker"
IS_ASYNC="Whether to use asynchronous production messages"
KAFKA_KEY="key for kafka producer index"

Usage

for config ELK Consumer kafka

Testing

composer test

Security

If you discover any security related issues, please email a.nasiri@map.ir instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-12