Download the PHP package unrelaxs/eslog-for-laravel without Composer
On this page you can find all versions of the php package unrelaxs/eslog-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download unrelaxs/eslog-for-laravel
More information about unrelaxs/eslog-for-laravel
Files in unrelaxs/eslog-for-laravel
Download unrelaxs/eslog-for-laravel
More information about unrelaxs/eslog-for-laravel
Files in unrelaxs/eslog-for-laravel
Vendor unrelaxs
Package eslog-for-laravel
Short Description about laravel log to elasticsearch
License
Package eslog-for-laravel
Short Description about laravel log to elasticsearch
License
Please rate this library. Is it a good library?
Informations about the package eslog-for-laravel
Requirements
The package has been tested in the following configuration:
- PHP version >=7.1.3, <=7.3
- Laravel Framework version >=5.8, <=6
- Elasticsearch version >=7
Installation
Use composer to install the package:
如果你的laravel框架版本 <= 5.4 or the package discovery
is disabled, add the following providers in config/app.php
:
Configuration
执行发布命令
在这个文件添加配置,指定elastic服务器的链接:端口 .evn
:
在这个文件修改 config/logging.php
:
创建一个索引配置文件:
此步骤可忽略,例如索引配置文件配置LogIndexConfigurator如下
执行命令 生成一个logModel指向一个索引:
执行命令向es服务器创建索引 :
执行命令 把上面执行命令返回model 映射到es服务器:
在客户端调用Log::info('你好啊');,如在routes/web.php中这样
去es服务器查看效果吧!
参考文献
All versions of eslog-for-laravel with dependencies
PHP Build Version
Package Version
Requires
babenkoivan/scout-elasticsearch-driver Version
^4.2.1
The package unrelaxs/eslog-for-laravel contains the following files
Loading the files please wait ....