tokenly / laravel-event-log
为 Laravel 提供的事件记录器。
v3.2.0
2018-07-16 18:30 UTC
Requires
- php: >=7.0.0
Requires (Dev)
- illuminate/log: ^5.5
- monolog/monolog: ^1.23
- phpunit/phpunit: ~6
README
Laravel 的事件记录器。被各种 Tokenly 服务使用。
提供 api.logApiCalls
中间件。
安装
- 使用
composer require tokenly/laravel-event-log
安装
使用方法
use EventLog; // log events EventLog::debug('user.loggedIn', ['userId' => $user_id]); // log exceptions try { // do something here } catch (Exception $exception) { EventLog::logError('action.failed', $e); }