triadev/laravel-logger-provider
Composer 安装命令:
composer require triadev/laravel-logger-provider
包简介
A laravel service provider for logging.
README 文档
README
A laravel and lumen service provider for logging.
Main features
- Stream
- Logstash
Installation
Composer
composer require triadev/laravel-logger-provider
Application
Register the service provider in the config/app.php (Laravel) or in the bootstrap/app.php (Lumen).
'providers' => [
\Triadev\Logger\Provider\LoggerServiceProvider::class
]
Once installed you can now publish your config file and set your correct configuration for using the package.
php artisan vendor:publish --provider="Triadev\Logger\Provider\LoggerServiceProvider" --tag="config"
This will create a file config/sc-logger.php.
Configuration
| Key | Value | Description |
|---|---|---|
| LOG_TYPE | STRING | stream or logstash |
| LOG_STREAM | STRING | php://stdout, ... |
| LOG_LEVEL | STRING | debug,error, ... |
Reporting Issues
If you do find an issue, please feel free to report it with GitHub's bug tracker for this project.
Alternatively, fork the project and make a pull request. :)
Other
Project related links
Author
License
The code for LaravelLoggerProvider is distributed under the terms of the MIT license (see LICENSE).
统计信息
- 总下载量: 199
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-04