fryiee/custom_log
Composer 安装命令:
composer require fryiee/custom_log
包简介
A Custom Log class built on Monolog's Logger.
README 文档
README
A custom Log class based on Monolog's Logger.
Installation
composer require fryiee/custom_log
Add LOG_PATH to your .env.
The package assumes the following:
LOG_PATH=laravelwill assume the same storage location as theLogfacade usingstorage_path('logs')LOG_PATH=some/path/will use that path to store logs. e.g../custom_logsLOG_PATH=will default to the packages' own location offryiee/custom_log/logs
Adding LOG_DATE=true to your .env will allow your logs to be dated in the same way as core Laravel logs
(Y-m-d format).
Usage
use Fryiee\CustomLog\Log;
...
Log::info('name', 'message');
The logger uses the name to generate the log file. You can also use slashes to set a nested location:
Log::info('nested/name', 'message'); // creates a file at logs/nested/name.log
统计信息
- 总下载量: 73
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-07