dev4born/logs
Composer 安装命令:
composer require dev4born/logs
包简介
Logs/events + API - Laravel
README 文档
README
Install
Via Composer
$ composer require dev4born/logs
Integration
In the $providers array add the service providers for this package.
dev4born\logs\LogsLaravelServiceProvider::class
Create config file config/logs.php and add the following lines.
/**
*
* Warning! You can only grant one permissions from 2 available
*
* @package dev4born\logs
*
*/
return [
'settings' => [
/**
*
* Secret key - unique address for accessing logs
*
* http://{your-project}/laravel/{secret-key}/logs
*
*/
'secret' => '',
/**
*
* Allowed permissions (middleware) for accessing logs
*
* http://{your-project}/laravel/view/logs
*
*/
'middleware' => [
],
],
];
You can specify 2 permissions (secret key or middleware) for accessing logs.
Usage
Secret key
http://{your-project}/laravel/{your-secret-key}/logs
Middleware
http://{your-project}/laravel/view/logs
JSON API
Secret key
http://{your-project}/laravel/{your-secret-key}/logs/json
Middleware
http://{your-project}/laravel/view/logs/json
Output
There are no problems.
{'error':'Everything functions properly.'}
There was an error.
{'error':'Perhaps an error occurred - check the logs/events.'}
Messages can be implemented in the dashboard.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Security
If you discover any security related issues, please email: milosz.nowak@dev4born.pro instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Screenshots
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-13