Easy sdk 日志扩展组件包
- 移除php-7.0语法,兼容php-5.5语法
- 组件名称改为
\Psr\Log\LoggerInterface::class,弃用原硬编码使用的logger名称
通过composer引入扩展包
composer require f-oris/easy-sdk-logger:^2.0Publish日志配置信息
php artisan vendor:publish --provider="Foris\Easy\Sdk\Logger\ServiceProvider"通过服务容器,获取Logger实例,按照easy-logger使用说明进行调用即可
<?php
$app = new \Foris\Easy\Sdk\Application();
$app->get(\Psr\Log\LoggerInterface::class)->debug('debug info');MIT License
Copyright (c) 2019-present F.oris [email protected]