tokenly / laravel-event-log
An event logger provider for Laravel.
Installs: 15 815
Dependents: 5
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.0.0
Requires (Dev)
- illuminate/log: ^5.5
- monolog/monolog: ^1.23
- phpunit/phpunit: ~6
README
An event logger for Laravel. Used by various Tokenly services.
Provides api.logApiCalls
middleware.
Installation
- Install with
composer require tokenly/laravel-event-log
Usage
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); }